summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sparc/mfpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/sparc/mfpu.c')
-rw-r--r--gcc/testsuite/gcc.target/sparc/mfpu.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/sparc/mfpu.c b/gcc/testsuite/gcc.target/sparc/mfpu.c
new file mode 100644
index 000000000..e95754c5d
--- /dev/null
+++ b/gcc/testsuite/gcc.target/sparc/mfpu.c
@@ -0,0 +1,11 @@
+/* Reported by Peter A. Krauss <peter.a.krauss@web.de> */
+
+/* { dg-do compile } */
+/* { dg-options "-mfpu" } */
+
+float square(float x)
+{
+ return x * x;
+}
+
+/* { dg-final { scan-assembler "fmuls" } } */