blob: 3fe9faaba850d843cadd4802690337467d4a4ba2 [file] [log] [blame]
James Y Knight7c905062015-11-23 21:33:58 +00001; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
Eric Christopher11e59832015-10-08 20:10:06 +00002; RUN: llc < %s -march=x86 -mattr=+sse2,-mmx | FileCheck %s
3
4; Test that turning off mmx doesn't turn off sse
5
6define void @test1(<2 x double>* %r, <2 x double>* %A, double %B) nounwind {
7; CHECK-LABEL: test1:
Eric Christopherab2241f2015-10-08 20:18:15 +00008; CHECK: # BB#0:
Eric Christopher11e59832015-10-08 20:10:06 +00009; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
10; CHECK-NEXT: movl {{[0-9]+}}(%esp), %ecx
11; CHECK-NEXT: movapd (%ecx), %xmm0
12; CHECK-NEXT: movlpd {{[0-9]+}}(%esp), %xmm0
13; CHECK-NEXT: movapd %xmm0, (%eax)
14; CHECK-NEXT: retl
15 %tmp3 = load <2 x double>, <2 x double>* %A, align 16
16 %tmp7 = insertelement <2 x double> undef, double %B, i32 0
17 %tmp9 = shufflevector <2 x double> %tmp3, <2 x double> %tmp7, <2 x i32> < i32 2, i32 1 >
18 store <2 x double> %tmp9, <2 x double>* %r, align 16
19 ret void
20}