diff options
-rw-r--r-- | test/CodeGen/X86/test-not-cmp.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/X86/test-not-cmp.ll b/test/CodeGen/X86/test-not-cmp.ll new file mode 100644 index 0000000000..106489334e --- /dev/null +++ b/test/CodeGen/X86/test-not-cmp.ll @@ -0,0 +1,14 @@ +; RUN: llvm-as < %s | llc -march=x86 +; RUN: llvm-as < %s | llc -march=x86 | grep test + +int %test(int %X, int* %y) { + %tmp = load int* %y + %tmp = seteq int %tmp, 0 + br bool %tmp, label %ReturnBlock, label %cond_true + +cond_true: + ret int 1 + +ReturnBlock: + ret int 0 +} |