diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-02-24 01:42:31 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-02-24 01:42:31 +0000 |
commit | 97e6b8390b405f9e7dd994f111a5950fca2962d2 (patch) | |
tree | 9f28b4394a19d69d306eebef354fe321ffd50c2c /test/CodeGen/X86/2010-02-23-DAGCombineBug.ll | |
parent | 9d2ed8e632b71914b2a668932f4f49b87c3ca0b1 (diff) | |
download | llvm-97e6b8390b405f9e7dd994f111a5950fca2962d2.tar.gz llvm-97e6b8390b405f9e7dd994f111a5950fca2962d2.tar.bz2 llvm-97e6b8390b405f9e7dd994f111a5950fca2962d2.tar.xz |
Re-apply 96540 and 96556 with fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97011 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2010-02-23-DAGCombineBug.ll')
-rw-r--r-- | test/CodeGen/X86/2010-02-23-DAGCombineBug.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2010-02-23-DAGCombineBug.ll b/test/CodeGen/X86/2010-02-23-DAGCombineBug.ll new file mode 100644 index 0000000000..ea3621f9f1 --- /dev/null +++ b/test/CodeGen/X86/2010-02-23-DAGCombineBug.ll @@ -0,0 +1,17 @@ +; RUN: llc < %s -march=x86 | FileCheck %s + +define i32* @t() nounwind optsize ssp { +entry: +; CHECK: t: +; CHECK: testl %eax, %eax +; CHECK: js + %cmp = icmp slt i32 undef, 0 ; <i1> [#uses=1] + %outsearch.0 = select i1 %cmp, i1 false, i1 true ; <i1> [#uses=1] + br i1 %outsearch.0, label %if.then27, label %if.else29 + +if.then27: ; preds = %entry + ret i32* undef + +if.else29: ; preds = %entry + unreachable +} |