aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1995-09-21 07:28:42 +0000
committerJeff Law <law@redhat.com>1995-09-21 07:28:42 +0000
commitaf4ea2afbfc44ca350307d3da8b259329989e3d9 (patch)
treea572c9eb5f864f055e61d78dd4374f6c40225106 /gas
parent78441c6f94693d7c5c7884b0ae35951320036e69 (diff)
downloadgdb-af4ea2afbfc44ca350307d3da8b259329989e3d9.zip
gdb-af4ea2afbfc44ca350307d3da8b259329989e3d9.tar.gz
gdb-af4ea2afbfc44ca350307d3da8b259329989e3d9.tar.bz2
* gas/sh/fp.s (fmac): Update for new assembly syntax.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/sh/fp.s45
1 files changed, 45 insertions, 0 deletions
diff --git a/gas/testsuite/gas/sh/fp.s b/gas/testsuite/gas/sh/fp.s
new file mode 100644
index 0000000..3da7249
--- /dev/null
+++ b/gas/testsuite/gas/sh/fp.s
@@ -0,0 +1,45 @@
+ .file "test.c"
+ .data
+
+! Hitachi SH cc1 (cygnus-2.7.1-950728) arguments: -O -fpeephole
+! -ffunction-cse -freg-struct-return -fdelayed-branch -fcommon -fgnu-linker
+
+gcc2_compiled.:
+___gnu_compiled_c:
+ .text
+ .align 2
+ .global _foo
+_foo:
+ fmov.s @r0,fr0
+ fmov.s fr0,@r0
+ fmov.s @r0+,fr0
+ fmov.s fr0,@-r0
+ fmov.s @(r0,r0),fr0
+ fmov.s fr0,@(r0,r0)
+ fmov fr0,fr1
+ fldi0 fr0
+ fldi1 fr0
+ fadd fr0,fr1
+ fsub fr0,fr1
+ fmul fr0,fr1
+ fdiv fr0,fr1
+ fmac fr0,fr0,fr1
+ fcmp/eq fr0,fr1
+ fcmp/gt fr0,fr1
+ ftst/nan fr0
+ fneg fr0
+ fabs fr0
+ fsqrt fr0
+ float fpul,fr0
+ ftrc fr0,fpul
+ fsts fpul,fr0
+ flds fr0,fpul
+ lds r3,fpul
+ lds.l @r3+,fpul
+ lds r3,fpscr
+ lds.l @r3+,fpscr
+ sts fpul,r3
+ sts.l fpul,@-r3
+ sts fpscr,r3
+ sts.l fpscr,@-r3
+