1 ; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=+sse | FileCheck %s --check-prefix=X32
2 ; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=+sse2 | FileCheck %s --check-prefix=X32
3 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=-sse2 | FileCheck %s --check-prefix=X64
4 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+sse2 | FileCheck %s --check-prefix=X64
6 ; PR16133 - we must treat XMM registers as v4f32 as SSE1 targets don't permit other vector types.
8 define void @nop() nounwind {
11 ; X32-NEXT: pushl %ebp
12 ; X32-NEXT: movl %esp, %ebp
13 ; X32-NEXT: andl $-16, %esp
14 ; X32-NEXT: subl $32, %esp
17 ; X32-NEXT: movaps %xmm0, (%esp)
18 ; X32-NEXT: movl %ebp, %esp
26 ; X64-NEXT: movaps %xmm0, -{{[0-9]+}}(%rsp)
28 %1 = alloca <4 x float>, align 16
29 %2 = call <4 x float> asm "", "=x,~{dirflag},~{fpsr},~{flags}"()
30 store <4 x float> %2, <4 x float>* %1, align 16