diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-07 23:03:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-07 23:03:54 +0000 |
commit | c2c27b3627cf7a8724f2e1ec6a93b1dceea09c25 (patch) | |
tree | 735d6c7cc4bf570dd19dcb7e08d2f2ac90ac2198 /test/CodeGen/X86/vec_compare.ll | |
parent | cb178c61e402c2d012b0b0f60336ff2209cd3ed1 (diff) | |
download | external_llvm-c2c27b3627cf7a8724f2e1ec6a93b1dceea09c25.zip external_llvm-c2c27b3627cf7a8724f2e1ec6a93b1dceea09c25.tar.gz external_llvm-c2c27b3627cf7a8724f2e1ec6a93b1dceea09c25.tar.bz2 |
add support for legalizing an icmp where the result is illegal (4xi1) but
the input is legal (4 x i32)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74964 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/vec_compare.ll')
-rw-r--r-- | test/CodeGen/X86/vec_compare.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_compare.ll b/test/CodeGen/X86/vec_compare.ll index 87d530d..7a8dfd6 100644 --- a/test/CodeGen/X86/vec_compare.ll +++ b/test/CodeGen/X86/vec_compare.ll @@ -5,3 +5,10 @@ define <4 x i32> @test(<4 x i32> %A, <4 x i32> %B) nounwind { ret <4 x i32> %C } + +define <4 x i32> @test2(<4 x i32> %A, <4 x i32> %B) nounwind { + %C = icmp sgt <4 x i32> %A, %B + %D = sext <4 x i1> %C to <4 x i32> + ret <4 x i32> %D +} + |