gcc/testsuite/gcc.target/i386/pr105960.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-ifunc "" } */ |
| 3 | /* { dg-options "-O2 -fpic" } */ |
| 4 | |
| 5 | __attribute__((target_clones("default","fma"))) |
| 6 | static inline double |
| 7 | expfull_ref(double x) |
| 8 | { |
| 9 | return __builtin_pow(x, 0.1234); |
| 10 | } |
| 11 | |
| 12 | double |
| 13 | exp_ref(double x) |
| 14 | { |
| 15 | return expfull_ref(x); |
| 16 | } |
| 17 | |
| 18 | /* { dg-final { scan-assembler "jmp\[ \t\]*expfull_ref@PLT" { target { ! ia32 } } } } */ |
| 19 | /* { dg-final { scan-assembler "call\[ \t\]*expfull_ref@PLT" { target ia32 } } } */ |