gcc/testsuite/gcc.target/powerpc/pr78056-5.c
raw| 1 | /* { dg-do compile { target { powerpc*-*-* } } } */ |
| 2 | /* { dg-skip-if "" { powerpc*-*-aix* } } */ |
| 3 | /* { dg-options "-mdejagnu-cpu=power5" } */ |
| 4 | |
| 5 | /* Though the command line specifies power5 target, this function is |
| 6 | to support power7. */ |
| 7 | __attribute__((target("cpu=power7"))) |
| 8 | int |
| 9 | div_we (int a, int b) |
| 10 | { |
| 11 | return __builtin_divwe (a, b); |
| 12 | } |
| 13 | |
| 14 | /* { dg-final { scan-assembler-times "divwe " 1 } } */ |