llvm.org GIT mirror llvm / 73f2788
update test to use FileCheck for tighter checking git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269122 91177308-0d34-0410-b5e6-96231b3b80d8 Sanjay Patel 3 years ago
1 changed file(s) with 17 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llc < %s -march=x86 | grep 111
0 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
1 ; RUN: llc < %s -mtriple=i386-unknown-unknown | FileCheck %s
12
23 define i8 @foo(i8 %tmp325) {
3 %t546 = urem i8 %tmp325, 37
4 ret i8 %t546
4 ; CHECK-LABEL: foo:
5 ; CHECK: # BB#0:
6 ; CHECK-NEXT: movzbl {{[0-9]+}}(%esp), %ecx
7 ; CHECK-NEXT: imull $111, %ecx, %eax
8 ; CHECK-NEXT: andl $28672, %eax # imm = 0x7000
9 ; CHECK-NEXT: shrl $12, %eax
10 ; CHECK-NEXT: movb $37, %dl
11 ; CHECK-NEXT: mulb %dl
12 ; CHECK-NEXT: subb %al, %cl
13 ; CHECK-NEXT: movl %ecx, %eax
14 ; CHECK-NEXT: retl
15 ;
16 %t546 = urem i8 %tmp325, 37
17 ret i8 %t546
518 }
19