diff --git a/test/CodeGen/X86/test-not-cmp.ll b/test/CodeGen/X86/test-not-cmp.ll new file mode 100644 index 00000000000..106489334e8 --- /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 +}