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 | fc74e8241abb4393a97888ac7ab21fd71ac3ac46 (patch) | |
tree | 4e32bcbb31fcc42884cb2df98cb13d011a6540f5 /llvm/test/CodeGen/X86/vec_compare.ll | |
parent | cbbf747b7ba22acf3a930133f1b55abf04f1992d (diff) | |
download | bcm5719-llvm-fc74e8241abb4393a97888ac7ab21fd71ac3ac46.tar.gz bcm5719-llvm-fc74e8241abb4393a97888ac7ab21fd71ac3ac46.zip |
add support for legalizing an icmp where the result is illegal (4xi1) but
the input is legal (4 x i32)
llvm-svn: 74964
Diffstat (limited to 'llvm/test/CodeGen/X86/vec_compare.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/vec_compare.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/vec_compare.ll b/llvm/test/CodeGen/X86/vec_compare.ll index 87d530dc1be..7a8dfd68cfd 100644 --- a/llvm/test/CodeGen/X86/vec_compare.ll +++ b/llvm/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 +} + |