gcc/testsuite/gcc.target/mips/soft-float-1.c
raw| 1 | /* { dg-options "-msoft-float -ffat-lto-objects" } */ |
| 2 | /* This is testing for errors which can only happen in assembly generation. |
| 3 | dg-error does not guarantee assembly generation, so we need to do it |
| 4 | manually by using -ffat-lto-objects. */ |
| 5 | |
| 6 | void |
| 7 | foo (void) |
| 8 | { |
| 9 | register float x asm ("$f0"); /* { dg-error "cannot be accessed" } */ |
| 10 | asm volatile ("" : "=r" (x)); |
| 11 | } |