llvm.org GIT mirror llvm / 327b8f1
FileCheck-ize and tighten up assertions to only check the relevant sections. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134350 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 8 years ago
1 changed file(s) with 11 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llc < %s -march=x86 | grep {orl \$1, %eax}
1 ; RUN: llc < %s -march=x86 | grep {leal 3(,%eax,8)}
0 ; RUN: llc < %s -march=x86 | FileCheck %s
21
32 ;; This example can't fold the or into an LEA.
43 define i32 @test(float ** %tmp2, i32 %tmp12) nounwind {
4 ; CHECK: test:
5 ; CHECK-NOT: ret
6 ; CHECK: orl $1, %{{.*}}
7 ; CHECK: ret
8
59 %tmp3 = load float** %tmp2
610 %tmp132 = shl i32 %tmp12, 2 ; [#uses=1]
711 %tmp4 = bitcast float* %tmp3 to i8* ; [#uses=1]
1115 ret i32 %tmp14
1216 }
1317
14
1518 ;; This can!
1619 define i32 @test2(i32 %a, i32 %b) nounwind {
20 ; CHECK: test2:
21 ; CHECK-NOT: ret
22 ; CHECK: leal 3(,%{{.*}},8)
23 ; CHECK: ret
24
1725 %c = shl i32 %a, 3
1826 %d = or i32 %c, 3
1927 ret i32 %d