aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/fold-imm.ll
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2013-06-10 20:36:52 +0000
committerDimitry Andric <dim@FreeBSD.org>2013-06-10 20:36:52 +0000
commit59d6cff90eecf31cb3dd860c4e786674cfdd42eb (patch)
tree909310b2e05119d1d6efda049977042abbb58bb1 /test/CodeGen/X86/fold-imm.ll
parent4a16efa3e43e35f0cc9efe3a67f620f0017c3d36 (diff)
Notes
Diffstat (limited to 'test/CodeGen/X86/fold-imm.ll')
-rw-r--r--test/CodeGen/X86/fold-imm.ll11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/CodeGen/X86/fold-imm.ll b/test/CodeGen/X86/fold-imm.ll
index f1fcbcfd13b4..16e4786979b9 100644
--- a/test/CodeGen/X86/fold-imm.ll
+++ b/test/CodeGen/X86/fold-imm.ll
@@ -1,5 +1,4 @@
-; RUN: llc < %s -march=x86 | grep inc
-; RUN: llc < %s -march=x86 | grep add | grep 4
+; RUN: llc < %s -march=x86 | FileCheck %s
define i32 @test(i32 %X) nounwind {
entry:
@@ -7,8 +6,16 @@ entry:
ret i32 %0
}
+; CHECK: test
+; CHECK: inc
+; CHECK: ret
+
define i32 @test2(i32 %X) nounwind {
entry:
%0 = add i32 %X, 4
ret i32 %0
}
+
+; CHECK: test2
+; CHECK: {{add.*4.*$}}
+; CHECK: ret