diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/fabsf-2008.c')
-rw-r--r-- | gcc/testsuite/gcc.target/mips/fabsf-2008.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/fabsf-2008.c b/gcc/testsuite/gcc.target/mips/fabsf-2008.c new file mode 100644 index 00000000000..229dae66b8f --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/fabsf-2008.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-options "-mabs=2008" } */ + +NOMIPS16 float +fabsf_2008 (float f) +{ + return __builtin_fabsf (f); +} + +/* { dg-final { scan-assembler "\tabs\.s\t" } } */ |