xref: /llvm-project/llvm/test/CodeGen/X86/sse-align-11.ll (revision 584ed8822631481ced8d3574cc1fed1585aed77d)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mcpu=yonah -mtriple=i686-apple-darwin8 | FileCheck %s --check-prefix=i686-apple-darwin8
3; RUN: llc < %s -mcpu=yonah -mtriple=i686-linux-gnu | FileCheck %s --check-prefix=i686-linux-gnu
4; PR8969 - make 32-bit linux have a 16-byte aligned stack
5
6define <4 x float> @foo(float %a, float %b, float %c, float %d) nounwind {
7; i686-apple-darwin8-LABEL: foo:
8; i686-apple-darwin8:       ## %bb.0: ## %entry
9; i686-apple-darwin8-NEXT:    movaps {{[0-9]+}}(%esp), %xmm0
10; i686-apple-darwin8-NEXT:    retl
11;
12; i686-linux-gnu-LABEL: foo:
13; i686-linux-gnu:       # %bb.0: # %entry
14; i686-linux-gnu-NEXT:    movaps {{[0-9]+}}(%esp), %xmm0
15; i686-linux-gnu-NEXT:    retl
16entry:
17        %tmp6 = insertelement <4 x float> undef, float %a, i32 0
18        %tmp7 = insertelement <4 x float> %tmp6, float %b, i32 1
19        %tmp8 = insertelement <4 x float> %tmp7, float %c, i32 2
20        %tmp9 = insertelement <4 x float> %tmp8, float %d, i32 3
21        ret <4 x float> %tmp9
22}
23
24