aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/x86-64-red-zone.c
blob: e3e3cab2ff81bd5e017c141f77743fb2cf535a8b (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: $llvmgcc -m64 -fomit-frame-pointer -O2 %s -S -o - > %t
// RUN: not grep subq %t
// RUN: not grep addq %t
// RUN: grep {\\-4(%%rsp)} %t | count 2
// RUN: $llvmgcc -m64 -fomit-frame-pointer -O2 %s -S -o - -mno-red-zone > %t
// RUN: grep subq %t | count 1
// RUN: grep addq %t | count 1
// This is a test for x86-64, add your target below if it FAILs.
// XFAIL: alpha|ia64|arm|powerpc|sparc|x86

long double f0(float f) { return f; }