2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / mips / oddspreg-3.c
blob16a2f03e0ff01c0a7ab3730e6fb9c53b417b12c2
1 /* Check that we disable odd-numbered single precision registers. */
2 /* { dg-options "-mabi=32 -mfp32 -march=loongson3a -mhard-float -ffat-lto-objects" } */
3 /* This is testing for errors which can only happen in assembly generation.
4 dg-error does not guarantee assembly generation, so we need to do it
5 manually by using -ffat-lto-objects. */
7 NOMIPS16 void
8 foo ()
10 register float foo asm ("$f1"); /* { dg-error "isn't suitable for" } */
11 asm volatile ("" : "=f" (foo));