diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-09 06:41:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-09 06:41:03 +0000 |
commit | cb921e7b5771f74e8073ba6f7eeda8681dab9c26 (patch) | |
tree | 1a34ad2db45c75087e6ea8599a413544f0073597 /test/CodeGen/X86/2007-02-23-DAGCombine-Miscompile.ll | |
parent | 4a26cc4de63dc5eb02549a281a1c86347e59fb0b (diff) |
move tests that depend on the x86 backend out of codegen/generic,
and remove a few old and unreduced ones. Fixes PR5624.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95656 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2007-02-23-DAGCombine-Miscompile.ll')
-rw-r--r-- | test/CodeGen/X86/2007-02-23-DAGCombine-Miscompile.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2007-02-23-DAGCombine-Miscompile.ll b/test/CodeGen/X86/2007-02-23-DAGCombine-Miscompile.ll new file mode 100644 index 00000000000..a8f0e576b95 --- /dev/null +++ b/test/CodeGen/X86/2007-02-23-DAGCombine-Miscompile.ll @@ -0,0 +1,13 @@ +; PR1219 +; RUN: llc < %s -march=x86 | grep {movl \$1, %eax} + +define i32 @test(i1 %X) { +old_entry1: + %hvar2 = zext i1 %X to i32 + %C = icmp sgt i32 %hvar2, -1 + br i1 %C, label %cond_true15, label %cond_true +cond_true15: + ret i32 1 +cond_true: + ret i32 2 +} |