aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2004-01-23 13:01:07 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2004-01-23 13:01:07 +0000
commit5fc684199ed5eb61abc705b948df8bb46d2ee7cc (patch)
tree474c26ec2de4da1d0e15f54701f21ea4a7fd61de /gas
parent584892a6d567210d0f242cd5eca32ee46e91872c (diff)
downloadgdb-5fc684199ed5eb61abc705b948df8bb46d2ee7cc.zip
gdb-5fc684199ed5eb61abc705b948df8bb46d2ee7cc.tar.gz
gdb-5fc684199ed5eb61abc705b948df8bb46d2ee7cc.tar.bz2
* gas/mips/macro-warn-[1234].[sdl]: New tests.
* gas/mips/macro-warn-[12]-n32.[dl]: New tests. * gas/mips/mips.exp: Run them.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/mips/macro-warn-1-n32.d5
-rw-r--r--gas/testsuite/gas/mips/macro-warn-1-n32.l6
-rw-r--r--gas/testsuite/gas/mips/macro-warn-1.d5
-rw-r--r--gas/testsuite/gas/mips/macro-warn-1.l8
-rw-r--r--gas/testsuite/gas/mips/macro-warn-1.s21
-rw-r--r--gas/testsuite/gas/mips/macro-warn-2-n32.d4
-rw-r--r--gas/testsuite/gas/mips/macro-warn-2.d5
-rw-r--r--gas/testsuite/gas/mips/macro-warn-2.l3
-rw-r--r--gas/testsuite/gas/mips/macro-warn-2.s10
-rw-r--r--gas/testsuite/gas/mips/macro-warn-3.d5
-rw-r--r--gas/testsuite/gas/mips/macro-warn-3.l3
-rw-r--r--gas/testsuite/gas/mips/macro-warn-3.s10
-rw-r--r--gas/testsuite/gas/mips/macro-warn-4.d5
-rw-r--r--gas/testsuite/gas/mips/macro-warn-4.l3
-rw-r--r--gas/testsuite/gas/mips/macro-warn-4.s7
-rw-r--r--gas/testsuite/gas/mips/mips.exp9
17 files changed, 115 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 4aabcf2..db61700 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,5 +1,11 @@
2004-01-23 Richard Sandiford <rsandifo@redhat.com>
+ * gas/mips/macro-warn-[1234].[sdl]: New tests.
+ * gas/mips/macro-warn-[12]-n32.[dl]: New tests.
+ * gas/mips/mips.exp: Run them.
+
+2004-01-23 Richard Sandiford <rsandifo@redhat.com>
+
* gas/mips/elf-rel19.[sd]: New test.
* gas/mips/mips.exp: Run it.
diff --git a/gas/testsuite/gas/mips/macro-warn-1-n32.d b/gas/testsuite/gas/mips/macro-warn-1-n32.d
new file mode 100644
index 0000000..08ea8d8
--- /dev/null
+++ b/gas/testsuite/gas/mips/macro-warn-1-n32.d
@@ -0,0 +1,5 @@
+#as: -n32 -KPIC
+#source: macro-warn-1.s
+#stderr: macro-warn-1-n32.l
+#objdump: -p
+#pass
diff --git a/gas/testsuite/gas/mips/macro-warn-1-n32.l b/gas/testsuite/gas/mips/macro-warn-1-n32.l
new file mode 100644
index 0000000..eaa35eb
--- /dev/null
+++ b/gas/testsuite/gas/mips/macro-warn-1-n32.l
@@ -0,0 +1,6 @@
+.*: Assembler messages:
+.*:6: Warning: Macro instruction expanded into multiple instructions
+.*:10: Warning: Macro instruction expanded into multiple instructions
+.*:12: Warning: Macro instruction expanded into multiple instructions
+.*:16: Warning: Macro instruction expanded into multiple instructions.*slot
+.*:20: Warning: Macro instruction expanded into multiple instructions.*slot
diff --git a/gas/testsuite/gas/mips/macro-warn-1.d b/gas/testsuite/gas/mips/macro-warn-1.d
new file mode 100644
index 0000000..d4d709d
--- /dev/null
+++ b/gas/testsuite/gas/mips/macro-warn-1.d
@@ -0,0 +1,5 @@
+#as: -32 -KPIC
+#source: macro-warn-1.s
+#stderr: macro-warn-1.l
+#objdump: -p
+#pass
diff --git a/gas/testsuite/gas/mips/macro-warn-1.l b/gas/testsuite/gas/mips/macro-warn-1.l
new file mode 100644
index 0000000..3cf69a0
--- /dev/null
+++ b/gas/testsuite/gas/mips/macro-warn-1.l
@@ -0,0 +1,8 @@
+.*: Assembler messages:
+.*:5: Warning: Macro instruction expanded into multiple instructions
+.*:10: Warning: Macro instruction expanded into multiple instructions
+.*:11: Warning: Macro instruction expanded into multiple instructions
+.*:12: Warning: Macro instruction expanded into multiple instructions
+.*:16: Warning: Macro instruction expanded into multiple instructions.*slot
+.*:18: Warning: Macro instruction expanded into multiple instructions.*slot
+.*:20: Warning: Macro instruction expanded into multiple instructions.*slot
diff --git a/gas/testsuite/gas/mips/macro-warn-1.s b/gas/testsuite/gas/mips/macro-warn-1.s
new file mode 100644
index 0000000..b07e5ba
--- /dev/null
+++ b/gas/testsuite/gas/mips/macro-warn-1.s
@@ -0,0 +1,21 @@
+ .set noreorder
+ .set nomacro
+ .globl early_global
+local:
+ .cpload $25
+ .cpsetup $25,16,local
+ .cprestore 16
+ .cpreturn
+ la $4,early_global
+ la $4,early_global+10
+ la $4,local+10
+ la $4,late_global+10
+ jr $5
+ la $4,early_global
+ jr $5
+ la $4,early_global+10
+ jr $5
+ la $4,local+10
+ jr $5
+ la $4,late_global+10
+ .globl late_global
diff --git a/gas/testsuite/gas/mips/macro-warn-2-n32.d b/gas/testsuite/gas/mips/macro-warn-2-n32.d
new file mode 100644
index 0000000..7a8c206
--- /dev/null
+++ b/gas/testsuite/gas/mips/macro-warn-2-n32.d
@@ -0,0 +1,4 @@
+#as: -n32 -KPIC
+#source: macro-warn-2.s
+#objdump: -p
+#pass
diff --git a/gas/testsuite/gas/mips/macro-warn-2.d b/gas/testsuite/gas/mips/macro-warn-2.d
new file mode 100644
index 0000000..5f7a9e5
--- /dev/null
+++ b/gas/testsuite/gas/mips/macro-warn-2.d
@@ -0,0 +1,5 @@
+#as: -32 -KPIC
+#source: macro-warn-2.s
+#stderr: macro-warn-2.l
+#objdump: -p
+#pass
diff --git a/gas/testsuite/gas/mips/macro-warn-2.l b/gas/testsuite/gas/mips/macro-warn-2.l
new file mode 100644
index 0000000..906de22
--- /dev/null
+++ b/gas/testsuite/gas/mips/macro-warn-2.l
@@ -0,0 +1,3 @@
+.*: Assembler messages:
+.*:5: Warning: Macro instruction expanded into multiple instructions
+.*:9: Warning: Macro instruction expanded into multiple instructions.*slot
diff --git a/gas/testsuite/gas/mips/macro-warn-2.s b/gas/testsuite/gas/mips/macro-warn-2.s
new file mode 100644
index 0000000..00f51f3
--- /dev/null
+++ b/gas/testsuite/gas/mips/macro-warn-2.s
@@ -0,0 +1,10 @@
+ .set noreorder
+ .set nomacro
+local:
+ la $4,late_global
+ la $4,local
+ jr $5
+ la $4,late_global
+ jr $5
+ la $4,local
+ .globl local_global
diff --git a/gas/testsuite/gas/mips/macro-warn-3.d b/gas/testsuite/gas/mips/macro-warn-3.d
new file mode 100644
index 0000000..10935f9
--- /dev/null
+++ b/gas/testsuite/gas/mips/macro-warn-3.d
@@ -0,0 +1,5 @@
+#as: -32
+#source: macro-warn-3.s
+#stderr: macro-warn-3.l
+#objdump: -p
+#pass
diff --git a/gas/testsuite/gas/mips/macro-warn-3.l b/gas/testsuite/gas/mips/macro-warn-3.l
new file mode 100644
index 0000000..33ecc74
--- /dev/null
+++ b/gas/testsuite/gas/mips/macro-warn-3.l
@@ -0,0 +1,3 @@
+.*: Assembler messages:
+.*:4: Warning: Macro instruction expanded into multiple instructions
+.*:7: Warning: Macro instruction expanded into multiple instructions.*slot
diff --git a/gas/testsuite/gas/mips/macro-warn-3.s b/gas/testsuite/gas/mips/macro-warn-3.s
new file mode 100644
index 0000000..0c6b2d7
--- /dev/null
+++ b/gas/testsuite/gas/mips/macro-warn-3.s
@@ -0,0 +1,10 @@
+ .set noreorder
+ .set nomacro
+early_big:
+ la $4,early_big
+ la $4,sdata
+ jr $5
+ la $4,early_big
+ jr $5
+ la $4,sdata
+ .comm sdata,4
diff --git a/gas/testsuite/gas/mips/macro-warn-4.d b/gas/testsuite/gas/mips/macro-warn-4.d
new file mode 100644
index 0000000..a52e09c
--- /dev/null
+++ b/gas/testsuite/gas/mips/macro-warn-4.d
@@ -0,0 +1,5 @@
+#as: -32
+#source: macro-warn-4.s
+#stderr: macro-warn-4.l
+#objdump: -p
+#pass
diff --git a/gas/testsuite/gas/mips/macro-warn-4.l b/gas/testsuite/gas/mips/macro-warn-4.l
new file mode 100644
index 0000000..abd23b0
--- /dev/null
+++ b/gas/testsuite/gas/mips/macro-warn-4.l
@@ -0,0 +1,3 @@
+.*: Assembler messages:
+.*:3: Warning: Macro instruction expanded into multiple instructions
+.*:5: Warning: Macro instruction expanded into multiple instructions.*slot
diff --git a/gas/testsuite/gas/mips/macro-warn-4.s b/gas/testsuite/gas/mips/macro-warn-4.s
new file mode 100644
index 0000000..d3be7f3
--- /dev/null
+++ b/gas/testsuite/gas/mips/macro-warn-4.s
@@ -0,0 +1,7 @@
+ .set noreorder
+ .set nomacro
+ la $4,late_big
+ jr $5
+ la $4,late_big
+ .comm sdata,4
+late_big:
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index b070982..a641c9b 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -735,4 +735,13 @@ if { [istarget mips*-*-*] } then {
run_dump_test "ldstla-n64"
run_dump_test "ldstla-n64-shared"
}
+
+ run_dump_test "macro-warn-1"
+ run_dump_test "macro-warn-2"
+ run_dump_test "macro-warn-3"
+ run_dump_test "macro-warn-4"
+ if $has_newabi {
+ run_dump_test "macro-warn-1-n32"
+ run_dump_test "macro-warn-2-n32"
+ }
}