aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2002-02-14 22:41:04 +0000
committerTom Rix <trix@redhat.com>2002-02-14 22:41:04 +0000
commit74a21df4873948b0ba5ac74444fe38fb339c535c (patch)
treeebebb2c5e928e25599474e719652b46613ce596f /gas
parent6b230f1b26437c6a503302392ee57477b4c468ad (diff)
downloadgdb-74a21df4873948b0ba5ac74444fe38fb339c535c.zip
gdb-74a21df4873948b0ba5ac74444fe38fb339c535c.tar.gz
gdb-74a21df4873948b0ba5ac74444fe38fb339c535c.tar.bz2
xcoff versions of the altivec test.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog8
-rw-r--r--gas/testsuite/gas/ppc/altivec_xcoff.d16
-rw-r--r--gas/testsuite/gas/ppc/altivec_xcoff.s16
-rw-r--r--gas/testsuite/gas/ppc/altivec_xcoff64.d16
-rw-r--r--gas/testsuite/gas/ppc/altivec_xcoff64.s14
-rw-r--r--gas/testsuite/gas/ppc/ppc.exp8
6 files changed, 77 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 41cc5b9..8506090 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2002-02-14 Tom Rix <trix@redhat.com>
+
+ * gas/ppc/ppc.exp: Add xcoff altivec tests.
+ * gas/ppc/altivec_xcoff.s: New.
+ * gas/ppc/altivec_xcoff.d: New.
+ * gas/ppc/altivec_xcoff64.s: New.
+ * gas/ppc/altivec_xcoff64.d: New.
+
2002-02-13 Ben Elliston <bje@redhat.com>
* gasp/flonums.asm: New test.
diff --git a/gas/testsuite/gas/ppc/altivec_xcoff.d b/gas/testsuite/gas/ppc/altivec_xcoff.d
new file mode 100644
index 0000000..2768dab
--- /dev/null
+++ b/gas/testsuite/gas/ppc/altivec_xcoff.d
@@ -0,0 +1,16 @@
+#as: -mppc -maltivec
+#objdump: -mpowerpc -Dr
+#name: xcoff AltiVec tests
+
+.*: file format aixcoff-rs6000
+
+Disassembly of section .text:
+
+0000000000000000 <.text>:
+ 0: 7c 60 06 6c dss 3
+ 4: 7e 40 06 6c dssall 2
+ 8: 7c 25 22 ac dst r5,r4,1
+ c: 7e 08 3a ac dstt r8,r7,0
+ 10: 7c 65 32 ec dstst r5,r6,3
+ 14: 7e 44 2a ec dststt r4,r5,2
+Disassembly of section .data:
diff --git a/gas/testsuite/gas/ppc/altivec_xcoff.s b/gas/testsuite/gas/ppc/altivec_xcoff.s
new file mode 100644
index 0000000..a942a0e
--- /dev/null
+++ b/gas/testsuite/gas/ppc/altivec_xcoff.s
@@ -0,0 +1,16 @@
+# PowerPC xcoff AltiVec tests
+#as: -mppc -maltivec
+ .machine "ppc"
+ .csect .text[PR]
+ .csect main[DS]
+main:
+ .csect .text[PR]
+.main:
+ dss 3
+ dssall 2
+ dst 5,4,1
+ dstt 8,7,0
+ dstst 5,6,3
+ dststt 4,5,2
+
+
diff --git a/gas/testsuite/gas/ppc/altivec_xcoff64.d b/gas/testsuite/gas/ppc/altivec_xcoff64.d
new file mode 100644
index 0000000..91ac21d
--- /dev/null
+++ b/gas/testsuite/gas/ppc/altivec_xcoff64.d
@@ -0,0 +1,16 @@
+#as: -a64 -mppc64 -maltivec
+#objdump: -Dr
+#name: xcoff64 AltiVec tests
+
+.*: file format aixcoff64-rs6000
+
+Disassembly of section .text:
+
+0000000000000000 <.text>:
+ 0: 7c 60 06 6c dss 3
+ 4: 7e 40 06 6c dssall 2
+ 8: 7c 25 22 ac dst r5,r4,1
+ c: 7e 08 3a ac dstt r8,r7,0
+ 10: 7c 65 32 ec dstst r5,r6,3
+ 14: 7e 44 2a ec dststt r4,r5,2
+Disassembly of section .data:
diff --git a/gas/testsuite/gas/ppc/altivec_xcoff64.s b/gas/testsuite/gas/ppc/altivec_xcoff64.s
new file mode 100644
index 0000000..cd7746e
--- /dev/null
+++ b/gas/testsuite/gas/ppc/altivec_xcoff64.s
@@ -0,0 +1,14 @@
+# PowerPC xcoff64 AltiVec tests
+#as: -a64 -mppc64 -maltivec
+ .machine "ppc64"
+ .csect .text[PR]
+ .csect main[DS]
+main:
+ .csect .text[PR]
+.main:
+ dss 3
+ dssall 2
+ dst 5,4,1
+ dstt 8,7,0
+ dstst 5,6,3
+ dststt 4,5,2
diff --git a/gas/testsuite/gas/ppc/ppc.exp b/gas/testsuite/gas/ppc/ppc.exp
index d84ce95..246f725 100644
--- a/gas/testsuite/gas/ppc/ppc.exp
+++ b/gas/testsuite/gas/ppc/ppc.exp
@@ -27,5 +27,11 @@ if { [istarget powerpc64*-*-*] || [istarget *-*-elf64*]} then {
if { [istarget powerpc*-*-*] } then {
run_dump_test "simpshft"
run_dump_test "booke"
- run_dump_test "altivec"
+
+ if { [istarget powerpc-ibm-aix*] } then {
+ run_dump_test "altivec_xcoff"
+ run_dump_test "altivec_xcoff64"
+ } else {
+ run_dump_test "altivec"
+ }
}