aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1997-09-18 23:44:43 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1997-09-18 23:44:43 +0000
commit33472d2c4d468fe6a3201245f0d81bf23d03e16f (patch)
treebfdba06503564e5db88f9bea06857d4f5f799b94 /gas/testsuite
parent2b36e4c29465676a7f83167ed9dcbf81fe2cf275 (diff)
downloadgdb-33472d2c4d468fe6a3201245f0d81bf23d03e16f.zip
gdb-33472d2c4d468fe6a3201245f0d81bf23d03e16f.tar.gz
gdb-33472d2c4d468fe6a3201245f0d81bf23d03e16f.tar.bz2
* gas/sparc/{asi.d,membar.d,prefetch.d,rdpr.d,wrpr.d}: Update to new
objdump output format. * gas/sparc/set64.[ds]: New testcase. * gas/sparc/splet-2.[ds]: New testcase. * gas/sparc/sparc.exp: Run them.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/sparc/.Sanitize4
-rw-r--r--gas/testsuite/gas/sparc/set64.s43
-rw-r--r--gas/testsuite/gas/sparc/splet-2.d23
-rw-r--r--gas/testsuite/gas/sparc/splet-2.s21
4 files changed, 91 insertions, 0 deletions
diff --git a/gas/testsuite/gas/sparc/.Sanitize b/gas/testsuite/gas/sparc/.Sanitize
index f2d27a7..3d1562d 100644
--- a/gas/testsuite/gas/sparc/.Sanitize
+++ b/gas/testsuite/gas/sparc/.Sanitize
@@ -33,8 +33,12 @@ prefetch.d
prefetch.s
rdpr.d
rdpr.s
+set64.d
+set64.s
splet.d
splet.s
+splet-2.d
+splet-2.s
synth.d
synth.s
synth64.d
diff --git a/gas/testsuite/gas/sparc/set64.s b/gas/testsuite/gas/sparc/set64.s
new file mode 100644
index 0000000..1f2a72f
--- /dev/null
+++ b/gas/testsuite/gas/sparc/set64.s
@@ -0,0 +1,43 @@
+# sparc64 set insn handling (includes set, setuw, setsw, setx)
+# FIXME: setuw,setsw not tested for yet.
+
+foo:
+ set foo,%g2
+ set -1,%g3
+ set 0,%g4
+ set 65535,%g5
+
+ setx foo,%g1,%g2
+
+ setx -1,%g1,%g3
+ setx 0,%g1,%g3
+ setx 1,%g1,%g3
+ setx 4095,%g1,%g3
+ setx 4096,%g1,%g3
+ setx -4096,%g1,%g3
+ setx -4097,%g1,%g3
+ setx 65535,%g1,%g3
+ setx -65536,%g1,%g3
+
+ setx 2147483647,%g1,%g4
+ setx 2147483648,%g1,%g4
+ setx -2147483648,%g1,%g4
+ setx -2147483649,%g1,%g4
+ setx 4294967295,%g1,%g4
+ setx 4294967296,%g1,%g4
+
+! GAS doesn't handle large base10 numbers yet.
+! setx 9223372036854775807,%g1,%g5
+! setx 9223372036854775808,%g1,%g5
+! setx -9223372036854775808,%g1,%g5
+! setx -9223372036854775809,%g1,%g5
+
+ setx 0x7fffffffffffffff,%g1,%g5
+ setx 0x8000000000000000,%g1,%g5 ! test only hh22 needed
+ setx 0xffffffff00000000,%g1,%g5 ! test only hm10 needed
+ setx 0xffffffff80000000,%g1,%g5 ! test sign-ext of lower 32
+ setx 0xffff0000ffff0000,%g1,%g5 ! test hh22,hi22
+ setx 0xffff000000000001,%g1,%g5 ! test hh22,lo10
+ setx 0x00000001ffff0001,%g1,%g5 ! test hm10,hi22,lo10
+ setx 0x00000001ffff0000,%g1,%g5 ! test hm10,hi22
+ setx 0x0000000100000001,%g1,%g5 ! test hm10,lo10
diff --git a/gas/testsuite/gas/sparc/splet-2.d b/gas/testsuite/gas/sparc/splet-2.d
new file mode 100644
index 0000000..d055538
--- /dev/null
+++ b/gas/testsuite/gas/sparc/splet-2.d
@@ -0,0 +1,23 @@
+#as: -Asparclet
+#objdump: -dr
+#name: sparclet coprocessor registers
+
+.*: +file format .*
+
+Disassembly of section .text:
+
+0+ <start>:
+ 0: 81 b0 40 c0 cwrcxt %g1, %ccsr
+ 4: 83 b0 40 c0 cwrcxt %g1, %ccfr
+ 8: 85 b0 40 c0 cwrcxt %g1, %cccrcr
+ c: 87 b0 40 c0 cwrcxt %g1, %ccpr
+ 10: 89 b0 40 c0 cwrcxt %g1, %ccsr2
+ 14: 8b b0 40 c0 cwrcxt %g1, %cccrr
+ 18: 8d b0 40 c0 cwrcxt %g1, %ccrstr
+ 1c: 83 b0 01 00 crdcxt %ccsr, %g1
+ 20: 83 b0 41 00 crdcxt %ccfr, %g1
+ 24: 83 b0 81 00 crdcxt %cccrcr, %g1
+ 28: 83 b0 c1 00 crdcxt %ccpr, %g1
+ 2c: 83 b1 01 00 crdcxt %ccsr2, %g1
+ 30: 83 b1 41 00 crdcxt %cccrr, %g1
+ 34: 83 b1 81 00 crdcxt %ccrstr, %g1
diff --git a/gas/testsuite/gas/sparc/splet-2.s b/gas/testsuite/gas/sparc/splet-2.s
new file mode 100644
index 0000000..5d34495
--- /dev/null
+++ b/gas/testsuite/gas/sparc/splet-2.s
@@ -0,0 +1,21 @@
+! Test sparclet coprocessor registers.
+
+ .text
+ .global start
+start:
+
+ cwrcxt %g1,%ccsr
+ cwrcxt %g1,%ccfr
+ cwrcxt %g1,%cccrcr
+ cwrcxt %g1,%ccpr
+ cwrcxt %g1,%ccsr2
+ cwrcxt %g1,%cccrr
+ cwrcxt %g1,%ccrstr
+
+ crdcxt %ccsr,%g1
+ crdcxt %ccfr,%g1
+ crdcxt %cccrcr,%g1
+ crdcxt %ccpr,%g1
+ crdcxt %ccsr2,%g1
+ crdcxt %cccrr,%g1
+ crdcxt %ccrstr,%g1