diff --git a/test/CodeGen/ARM/hello.ll b/test/CodeGen/ARM/hello.ll index 08e6104bbcf..b03a60ab60c 100644 --- a/test/CodeGen/ARM/hello.ll +++ b/test/CodeGen/ARM/hello.ll @@ -16,9 +16,11 @@ define i32 @main() { declare i32 @puts(i8*) +; CHECK-LABEL: main ; CHECK: mov ; CHECK-NOT: mov +; CHECK-FP-ELIM-LABEL: main ; CHECK-FP-ELIM: mov ; CHECK-FP-ELIM: mov ; CHECK-FP-ELIM-NOT: mov diff --git a/test/CodeGen/ARM/ldr_frame.ll b/test/CodeGen/ARM/ldr_frame.ll index 01b18bccc33..24c10b42a44 100644 --- a/test/CodeGen/ARM/ldr_frame.ll +++ b/test/CodeGen/ARM/ldr_frame.ll @@ -1,5 +1,7 @@ ; RUN: llc -mtriple=arm-eabi -mattr=+v4t %s -o - | FileCheck %s +; CHECK-LABEL: f1 +; CHECK-NOT: mov define i32 @f1() { %buf = alloca [32 x i32], align 4 %tmp = getelementptr [32 x i32], [32 x i32]* %buf, i32 0, i32 0 @@ -7,6 +9,8 @@ define i32 @f1() { ret i32 %tmp1 } +; CHECK-LABEL: f2 +; CHECK-NOT: mov define i32 @f2() { %buf = alloca [32 x i8], align 4 %tmp = getelementptr [32 x i8], [32 x i8]* %buf, i32 0, i32 0 @@ -15,6 +19,8 @@ define i32 @f2() { ret i32 %tmp2 } +; CHECK-LABEL: f3 +; CHECK-NOT: mov define i32 @f3() { %buf = alloca [32 x i32], align 4 %tmp = getelementptr [32 x i32], [32 x i32]* %buf, i32 0, i32 32 @@ -22,6 +28,8 @@ define i32 @f3() { ret i32 %tmp1 } +; CHECK-LABEL: f4 +; CHECK-NOT: mov define i32 @f4() { %buf = alloca [32 x i8], align 4 %tmp = getelementptr [32 x i8], [32 x i8]* %buf, i32 0, i32 2 @@ -29,6 +37,3 @@ define i32 @f4() { %tmp2 = zext i8 %tmp1 to i32 ret i32 %tmp2 } - -; CHECK-NOT: mov - diff --git a/test/CodeGen/ARM/truncstore-dag-combine.ll b/test/CodeGen/ARM/truncstore-dag-combine.ll index 11fa022451f..5142a305b3a 100644 --- a/test/CodeGen/ARM/truncstore-dag-combine.ll +++ b/test/CodeGen/ARM/truncstore-dag-combine.ll @@ -1,5 +1,8 @@ ; RUN: llc -mtriple=arm-eabi -mattr=+v4t %s -o - | FileCheck %s +; CHECK-LABEL: bar +; CHECK-NOT: orr +; CHECK-NOT: mov define void @bar(i8* %P, i16* %Q) { entry: %P1 = bitcast i8* %P to i16* ; [#uses=1] @@ -8,6 +11,9 @@ entry: ret void } +; CHECK-LABEL: foo +; CHECK-NOT: orr +; CHECK-NOT: mov define void @foo(i8* %P, i32* %Q) { entry: %P1 = bitcast i8* %P to i32* ; [#uses=1] @@ -15,7 +21,3 @@ entry: store i32 %tmp, i32* %P1, align 1 ret void } - -; CHECK-NOT: orr -; CHECK-NOT: mov -