diff options
Diffstat (limited to 'llvm/test/CodeGen/X86/compare-add.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/compare-add.ll | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/X86/compare-add.ll b/llvm/test/CodeGen/X86/compare-add.ll index d3d7668a394..aa69a31a48f 100644 --- a/llvm/test/CodeGen/X86/compare-add.ll +++ b/llvm/test/CodeGen/X86/compare-add.ll @@ -1,7 +1,8 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep add -bool %X(int %X) { - %Y = add int %X, 14 - %Z = setne int %Y, 12345 - ret bool %Z +; RUN: llvm-as < %s | llc -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 } |