aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/testsuite/gcc.target/i386/pr37843-3.c
blob: a475e4143ff05168e0c22d07fe9f5d9d4de64564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Test for stack alignment with sibcall optimization.  */
/* { dg-do compile { target { ilp32 && nonpic } } } */
/* { dg-options "-O2 -msse2 -mpreferred-stack-boundary=4 -mstackrealign" } */
/* { dg-final { scan-assembler-not "andl\[\\t \]*\\$-16,\[\\t \]*%\[re\]?sp" } } */
/* { dg-final { scan-assembler-not "call\[\\t \]*foo" } } */
/* { dg-final { scan-assembler "jmp\[\\t \]*foo" } } */

#include <emmintrin.h>

extern int foo (__m128, __m128, __m128, __m128);

int bar (__m128 x1, __m128 x2, __m128 x3, __m128 x4)
{
    return foo (x1, x2, x3, x4);
}