diff options
-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 0000000000..5665ad4829 --- /dev/null +++ b/test/CodeGen/X86/compare-add.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | llc -march=x86 && +; RUN: llvm-as < %s | llc -march=x86 | not grep add +bool %X(int %X) { + %Y = add int %X, 14 + %Z = setne int %Y, 12345 + ret bool %Z +} + |