[NVPTX] run SROA after NVPTXFavorNonGenericAddrSpaces
[oota-llvm.git] / test / CodeGen / XCore / unaligned_store.ll
index b7a519299fda274a6ae3082c08ca6cf6a404784d..27b428086d5e07942eed82b009d695a298e67880 100644 (file)
@@ -1,9 +1,20 @@
-; RUN: llvm-as < %s | llc -march=xcore > %t1.s
-; RUN: grep "bl __misaligned_store" %t1.s | count 1
+; RUN: llc < %s -march=xcore | FileCheck %s
 
-; Byte aligned store. Expands to call to __misaligned_store.
+; Byte aligned store.
+; CHECK-LABEL: align1:
+; CHECK: bl __misaligned_store
 define void @align1(i32* %p, i32 %val) nounwind {
 entry:
        store i32 %val, i32* %p, align 1
        ret void
 }
+
+; Half word aligned store.
+; CHECK: align2
+; CHECK: st16
+; CHECK: st16
+define void @align2(i32* %p, i32 %val) nounwind {
+entry:
+       store i32 %val, i32* %p, align 2
+       ret void
+}