c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr112707-1.c
blobcce6bd7f69070121cd5dfb77eb9c76c949c90e39
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mdejagnu-cpu=7450 -fno-math-errno" } */
3 /* { dg-require-effective-target ilp32 } */
4 /* { dg-skip-if "" { has_arch_ppc64 } } */
5 /* { dg-final { scan-assembler-times {\mfctiw\M} 2 } } */
6 /* { dg-final { scan-assembler-times {\mstfiwx\M} 2 } } */
8 int test1 (double a)
10 return __builtin_irint (a);
13 int test2 (float a)
15 return __builtin_irint (a);