llvm.org GIT mirror llvm / b26327c
Fix some erroneous lit test failures due to unlucky name of working directory. Differential Revision: http://reviews.llvm.org/D17044 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261104 91177308-0d34-0410-b5e6-96231b3b80d8 Mitch Bodart 4 years ago
3 changed file(s) with 16 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
1515
1616 declare i32 @puts(i8*)
1717
18 ; CHECK-LABEL: main
1819 ; CHECK: mov
1920 ; CHECK-NOT: mov
2021
22 ; CHECK-FP-ELIM-LABEL: main
2123 ; CHECK-FP-ELIM: mov
2224 ; CHECK-FP-ELIM: mov
2325 ; CHECK-FP-ELIM-NOT: mov
0 ; RUN: llc -mtriple=arm-eabi -mattr=+v4t %s -o - | FileCheck %s
11
2 ; CHECK-LABEL: f1
3 ; CHECK-NOT: mov
24 define i32 @f1() {
35 %buf = alloca [32 x i32], align 4
46 %tmp = getelementptr [32 x i32], [32 x i32]* %buf, i32 0, i32 0
68 ret i32 %tmp1
79 }
810
11 ; CHECK-LABEL: f2
12 ; CHECK-NOT: mov
913 define i32 @f2() {
1014 %buf = alloca [32 x i8], align 4
1115 %tmp = getelementptr [32 x i8], [32 x i8]* %buf, i32 0, i32 0
1418 ret i32 %tmp2
1519 }
1620
21 ; CHECK-LABEL: f3
22 ; CHECK-NOT: mov
1723 define i32 @f3() {
1824 %buf = alloca [32 x i32], align 4
1925 %tmp = getelementptr [32 x i32], [32 x i32]* %buf, i32 0, i32 32
2127 ret i32 %tmp1
2228 }
2329
30 ; CHECK-LABEL: f4
31 ; CHECK-NOT: mov
2432 define i32 @f4() {
2533 %buf = alloca [32 x i8], align 4
2634 %tmp = getelementptr [32 x i8], [32 x i8]* %buf, i32 0, i32 2
2836 %tmp2 = zext i8 %tmp1 to i32
2937 ret i32 %tmp2
3038 }
31
32 ; CHECK-NOT: mov
33
0 ; RUN: llc -mtriple=arm-eabi -mattr=+v4t %s -o - | FileCheck %s
11
2 ; CHECK-LABEL: bar
3 ; CHECK-NOT: orr
4 ; CHECK-NOT: mov
25 define void @bar(i8* %P, i16* %Q) {
36 entry:
47 %P1 = bitcast i8* %P to i16* ; [#uses=1]
710 ret void
811 }
912
13 ; CHECK-LABEL: foo
14 ; CHECK-NOT: orr
15 ; CHECK-NOT: mov
1016 define void @foo(i8* %P, i32* %Q) {
1117 entry:
1218 %P1 = bitcast i8* %P to i32* ; [#uses=1]
1420 store i32 %tmp, i32* %P1, align 1
1521 ret void
1622 }
17
18 ; CHECK-NOT: orr
19 ; CHECK-NOT: mov
20