gcc/testsuite/gcc.target/riscv/_Float16-zhinxmin-4.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-march=rv64i_zhinxmin -mabi=lp64 -O3 -mcmodel=medany" } */ |
| 3 | /* { dg-final { check-function-bodies "**" "" } } */ |
| 4 | |
| 5 | /* Make sure zfhmin behaves the same way as zfh. */ |
| 6 | /* |
| 7 | ** foo: { target { no-opts "-flto" } } |
| 8 | ** lla\ta[0-9]+,\.LC0 |
| 9 | ** lhu\ta[0-9]+,0\(a[0-9]+\) |
| 10 | ** ... |
| 11 | */ |
| 12 | _Float16 foo() { return 0.8974; } |