gcc/testsuite/gcc.target/powerpc/pr112707-1.c
raw| 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 } } */ |
| 7 | |
| 8 | int test1 (double a) |
| 9 | { |
| 10 | return __builtin_irint (a); |
| 11 | } |
| 12 | |
| 13 | int test2 (float a) |
| 14 | { |
| 15 | return __builtin_irint (a); |
| 16 | } |