diff options
Diffstat (limited to 'test/CodeGen/X86/sext-blend.ll')
-rw-r--r-- | test/CodeGen/X86/sext-blend.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/X86/sext-blend.ll b/test/CodeGen/X86/sext-blend.ll new file mode 100644 index 0000000000..b1f9573f30 --- /dev/null +++ b/test/CodeGen/X86/sext-blend.ll @@ -0,0 +1,15 @@ +; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7 -promote-elements -mattr=+sse41 | FileCheck %s + +; CHECK: foo +define <4 x double> @foo(<4 x double> %x, <4 x double> %y) { + ; CHECK: cmpnlepd + ; CHECK: psllq + ; CHECK-NEXT: blendvpd + ; CHECK: psllq + ; CHECK-NEXT: blendvpd + ; CHECK: ret + %min_is_x = fcmp ult <4 x double> %x, %y + %min = select <4 x i1> %min_is_x, <4 x double> %x, <4 x double> %y + ret <4 x double> %min +} + |