aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorMatthew Green <mrg@redhat.com>2001-10-17 13:13:16 +0000
committerMatthew Green <mrg@redhat.com>2001-10-17 13:13:16 +0000
commitf5c120c5dcc817baeafc0db53d03e84735616eb2 (patch)
treee5e9b43103821f3917cb6422c4fd9910e047e97a /gas
parent973ffd6335bb35d78d2ea2b844019f38ac9dbba5 (diff)
downloadgdb-f5c120c5dcc817baeafc0db53d03e84735616eb2.zip
gdb-f5c120c5dcc817baeafc0db53d03e84735616eb2.tar.gz
gdb-f5c120c5dcc817baeafc0db53d03e84735616eb2.tar.bz2
[gas/ChangeLog]
* config/tc-ppc.c (md_show_usage): Add missing -maltivec, -m7400, -m7410, -m7450 and -m7455 options. [gas/testsuite/ChangeLog] * gas/ppc/altivec.s: New test for AltiVec. * gas/ppc/altivec.d: New file. * gas/ppc/ppc.exp: Test altivec.s [include/opcode/ChangeLog] * ppc.h (PPC_OPCODE_BOOKE64): Fix typo. [opcodes/ChangeLog] * ppc-opc.c (STRM): New AltiVec operand. (XDSS): New AltiVec instruction form. (mtvscr): Correct operand list. (dst, dstt, dstst, dststt, dss, dssall): AltiVec instructions.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-ppc.c7
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/ppc/altivec.d16
-rw-r--r--gas/testsuite/gas/ppc/altivec.s10
-rw-r--r--gas/testsuite/gas/ppc/ppc.exp1
6 files changed, 43 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index b3551fb..435d388 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-17 matthew green <mrg@redhat.com>
+
+ * config/tc-ppc.c (md_show_usage): Add missing -maltivec, -m7400,
+ -m7410, -m7450 and -m7455 options.
+
2001-10-17 Alan Modra <amodra@bigpond.net.au>
* config/tc-ppc.c (PPC_HA, PPC_HIGHERA, PPC_HIGHESTA): Simplify.
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index 79a8526..d0e8db8 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -1028,10 +1028,13 @@ PowerPC options:\n\
-mppc, -mppc32, -m603, -m604\n\
generate code for Motorola PowerPC 603/604\n\
-m403, -m405 generate code for Motorola PowerPC 403/405\n\
+-m7400, -m7410, -m7450, -m7455\n\
+ generate code For Motorola PowerPC 7400/7410/7450/7455\n\
-mppc64, -m620 generate code for Motorola PowerPC 620\n\
-mppc64bridge generate code for PowerPC 64, including bridge insns\n\
--mbooke64 generate code for 64-bit Motorola BookE\n\
--mbooke, mbooke32 generate code for 32-bit Motorola BookE\n\
+-mbooke64 generate code for 64-bit Motorola BookE\n\
+-mbooke, mbooke32 generate code for 32-bit Motorola BookE\n\
+-maltivec generate code for AltiVec\n\
-mcom generate code Power/PowerPC common instructions\n\
-many generate code for any architecture (PWR/PWRX/PPC)\n\
-mregnames Allow symbolic names for registers\n\
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 6575f68..88a043f 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2001-10-17 matthew green <mrg@redhat.com>
+
+ * gas/ppc/altivec.s: New test for AltiVec.
+ * gas/ppc/altivec.d: New file.
+ * gas/ppc/ppc.exp: Test altivec.s
+
2001-10-16 Hans-Peter Nilsson <hp@bitrange.com>
* gas/sh/err-le.s, gas/sh/err-be.s: New tests.
diff --git a/gas/testsuite/gas/ppc/altivec.d b/gas/testsuite/gas/ppc/altivec.d
new file mode 100644
index 0000000..6fc1b7e
--- /dev/null
+++ b/gas/testsuite/gas/ppc/altivec.d
@@ -0,0 +1,16 @@
+#as: -m601 -maltivec
+#objdump: -Dr
+#name: AltiVec tests
+
+.*: +file format elf32-powerpc
+
+Disassembly of section \.text:
+
+00000000 <start>:
+ 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.s b/gas/testsuite/gas/ppc/altivec.s
new file mode 100644
index 0000000..40e143d
--- /dev/null
+++ b/gas/testsuite/gas/ppc/altivec.s
@@ -0,0 +1,10 @@
+# PowerPC AltiVec tests
+#as: -m601 -maltivec
+ .section ".text"
+start:
+ 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 85d5be0..d84ce95 100644
--- a/gas/testsuite/gas/ppc/ppc.exp
+++ b/gas/testsuite/gas/ppc/ppc.exp
@@ -27,4 +27,5 @@ if { [istarget powerpc64*-*-*] || [istarget *-*-elf64*]} then {
if { [istarget powerpc*-*-*] } then {
run_dump_test "simpshft"
run_dump_test "booke"
+ run_dump_test "altivec"
}