summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-05-10 21:42:09 +0000
committerSanjay Patel <spatel@rotateright.com>2016-05-10 21:42:09 +0000
commitf68a8c47792a95d666f822701ed645331689fb7a (patch)
tree70f47d2a5bf9aefc2905ec99c7f3b53131a819e2
parente58a814c07165cc0809a26af74f4df1049268dcf (diff)
downloadbcm5719-llvm-f68a8c47792a95d666f822701ed645331689fb7a.tar.gz
bcm5719-llvm-f68a8c47792a95d666f822701ed645331689fb7a.zip
update test to use FileCheck for tighter checking
llvm-svn: 269122
-rw-r--r--llvm/test/CodeGen/X86/urem-i8-constant.ll20
1 files changed, 17 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/X86/urem-i8-constant.ll b/llvm/test/CodeGen/X86/urem-i8-constant.ll
index e3cb69ca591..03d73eede8c 100644
--- a/llvm/test/CodeGen/X86/urem-i8-constant.ll
+++ b/llvm/test/CodeGen/X86/urem-i8-constant.ll
@@ -1,6 +1,20 @@
-; RUN: llc < %s -march=x86 | grep 111
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: llc < %s -mtriple=i386-unknown-unknown | FileCheck %s
define i8 @foo(i8 %tmp325) {
- %t546 = urem i8 %tmp325, 37
- ret i8 %t546
+; CHECK-LABEL: foo:
+; CHECK: # BB#0:
+; CHECK-NEXT: movzbl {{[0-9]+}}(%esp), %ecx
+; CHECK-NEXT: imull $111, %ecx, %eax
+; CHECK-NEXT: andl $28672, %eax # imm = 0x7000
+; CHECK-NEXT: shrl $12, %eax
+; CHECK-NEXT: movb $37, %dl
+; CHECK-NEXT: mulb %dl
+; CHECK-NEXT: subb %al, %cl
+; CHECK-NEXT: movl %ecx, %eax
+; CHECK-NEXT: retl
+;
+ %t546 = urem i8 %tmp325, 37
+ ret i8 %t546
}
+
OpenPOWER on IntegriCloud