diff options
Diffstat (limited to 'test/CodeGen/X86/compare-add.ll')
-rw-r--r-- | test/CodeGen/X86/compare-add.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/compare-add.ll b/test/CodeGen/X86/compare-add.ll new file mode 100644 index 0000000..358ee59 --- /dev/null +++ b/test/CodeGen/X86/compare-add.ll @@ -0,0 +1,8 @@ +; RUN: llc < %s -march=x86 | not grep add + +define i1 @X(i32 %X) { + %Y = add i32 %X, 14 ; <i32> [#uses=1] + %Z = icmp ne i32 %Y, 12345 ; <i1> [#uses=1] + ret i1 %Z +} + |