2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / mips / soft-float-1.c
blobe6db3e2ddf61be9be9835fb54e0a3679daa392ec
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. */
6 void
7 foo (void)
9 register float x asm ("$f0"); /* { dg-error "cannot be accessed" } */
10 asm volatile ("" : "=r" (x));