summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2009-07-07-SplitICmp.ll
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-07-09 22:01:03 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-07-09 22:01:03 +0000
commitc680ac90032bf455b2bba77de538fccea08eb267 (patch)
tree00f8af7d1bfa6165c868a13adc39b98f4f7dd522 /test/CodeGen/X86/2009-07-07-SplitICmp.ll
parent6dded67b0d6262964e22163d0ab37c9ee6957c0a (diff)
downloadllvm-c680ac90032bf455b2bba77de538fccea08eb267.tar.gz
llvm-c680ac90032bf455b2bba77de538fccea08eb267.tar.bz2
llvm-c680ac90032bf455b2bba77de538fccea08eb267.tar.xz
Make EXTRACT_VECTOR_ELT a bit more flexible in terms of the returned
value. Adjust other code to deal with that correctly. Make DAGTypeLegalizer::PromoteIntRes_EXTRACT_VECTOR_ELT take advantage of this new flexibility to simplify the code and make it deal with unusual vectors (like <4 x i1>) correctly. Fixes PR3037. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2009-07-07-SplitICmp.ll')
-rw-r--r--test/CodeGen/X86/2009-07-07-SplitICmp.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2009-07-07-SplitICmp.ll b/test/CodeGen/X86/2009-07-07-SplitICmp.ll
new file mode 100644
index 0000000000..9a7b52d152
--- /dev/null
+++ b/test/CodeGen/X86/2009-07-07-SplitICmp.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc -march=x86 -disable-mmx
+
+define void @test2(<2 x i32> %A, <2 x i32> %B, <2 x i32>* %C) nounwind {
+ %D = icmp sgt <2 x i32> %A, %B
+ %E = zext <2 x i1> %D to <2 x i32>
+ store <2 x i32> %E, <2 x i32>* %C
+ ret void
+}