MIR Serialization: print and parse machine function names.
[oota-llvm.git] / test / CodeGen / XCore / unaligned_store.ll
index 120d6529ece3aa102eac35e69a0757050ebe87c5..27b428086d5e07942eed82b009d695a298e67880 100644 (file)
@@ -1,16 +1,18 @@
-; RUN: llvm-as < %s | llc -march=xcore > %t1.s
-; RUN: grep "bl __misaligned_store" %t1.s | count 1
-; RUN: grep st16 %t1.s | count 2
-; RUN: grep shr %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. Expands to two 16bit stores.
+; 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