diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/nan-legacy.c')
-rw-r--r-- | gcc/testsuite/gcc.target/mips/nan-legacy.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/nan-legacy.c b/gcc/testsuite/gcc.target/mips/nan-legacy.c new file mode 100644 index 00000000000..359ca221edd --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/nan-legacy.c @@ -0,0 +1,7 @@ +/* { dg-do compile } */ +/* { dg-options "-mnan=legacy -EB" } */ + +double d = __builtin_nan (""); + +/* { dg-final { scan-assembler "\t\\.nan\tlegacy\n" } } */ +/* { dg-final { scan-assembler "\t\\.word\t2146959359\n\t\\.word\t(?:-1|4294967295)\n" } } */ |