gcc/testsuite/gcc.target/riscv/_Float16-soft-3.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-march=rv64if -mabi=lp64f -O" } */ |
| 3 | |
| 4 | int test_soft_compare (_Float16 a, _Float16 b) |
| 5 | { |
| 6 | /* Make sure __gthf2 not invoked here. */ |
| 7 | /* { dg-final { scan-assembler-times "call\t__extendhfsf2" 2 } } */ |
| 8 | return a > b; |
| 9 | /* { dg-final { scan-assembler-not "call\t__gthf2" } } */ |
| 10 | /* { dg-final { scan-assembler-times {\mfgt\.s\M} 1 } } */ |
| 11 | } |
| 12 |