forked from Imagelibrary/binutils-gdb
* gas/mips/macro-warn-[1234].[sdl]: New tests.
* gas/mips/macro-warn-[12]-n32.[dl]: New tests. * gas/mips/mips.exp: Run them.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2004-01-23 Richard Sandiford <rsandifo@redhat.com>
|
||||||
|
|
||||||
* gas/mips/elf-rel19.[sd]: New test.
|
* gas/mips/elf-rel19.[sd]: New test.
|
||||||
|
|||||||
5
gas/testsuite/gas/mips/macro-warn-1-n32.d
Normal file
5
gas/testsuite/gas/mips/macro-warn-1-n32.d
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#as: -n32 -KPIC
|
||||||
|
#source: macro-warn-1.s
|
||||||
|
#stderr: macro-warn-1-n32.l
|
||||||
|
#objdump: -p
|
||||||
|
#pass
|
||||||
6
gas/testsuite/gas/mips/macro-warn-1-n32.l
Normal file
6
gas/testsuite/gas/mips/macro-warn-1-n32.l
Normal file
@@ -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
|
||||||
5
gas/testsuite/gas/mips/macro-warn-1.d
Normal file
5
gas/testsuite/gas/mips/macro-warn-1.d
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#as: -32 -KPIC
|
||||||
|
#source: macro-warn-1.s
|
||||||
|
#stderr: macro-warn-1.l
|
||||||
|
#objdump: -p
|
||||||
|
#pass
|
||||||
8
gas/testsuite/gas/mips/macro-warn-1.l
Normal file
8
gas/testsuite/gas/mips/macro-warn-1.l
Normal file
@@ -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
|
||||||
21
gas/testsuite/gas/mips/macro-warn-1.s
Normal file
21
gas/testsuite/gas/mips/macro-warn-1.s
Normal file
@@ -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
|
||||||
4
gas/testsuite/gas/mips/macro-warn-2-n32.d
Normal file
4
gas/testsuite/gas/mips/macro-warn-2-n32.d
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#as: -n32 -KPIC
|
||||||
|
#source: macro-warn-2.s
|
||||||
|
#objdump: -p
|
||||||
|
#pass
|
||||||
5
gas/testsuite/gas/mips/macro-warn-2.d
Normal file
5
gas/testsuite/gas/mips/macro-warn-2.d
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#as: -32 -KPIC
|
||||||
|
#source: macro-warn-2.s
|
||||||
|
#stderr: macro-warn-2.l
|
||||||
|
#objdump: -p
|
||||||
|
#pass
|
||||||
3
gas/testsuite/gas/mips/macro-warn-2.l
Normal file
3
gas/testsuite/gas/mips/macro-warn-2.l
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.*: Assembler messages:
|
||||||
|
.*:5: Warning: Macro instruction expanded into multiple instructions
|
||||||
|
.*:9: Warning: Macro instruction expanded into multiple instructions.*slot
|
||||||
10
gas/testsuite/gas/mips/macro-warn-2.s
Normal file
10
gas/testsuite/gas/mips/macro-warn-2.s
Normal file
@@ -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
|
||||||
5
gas/testsuite/gas/mips/macro-warn-3.d
Normal file
5
gas/testsuite/gas/mips/macro-warn-3.d
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#as: -32
|
||||||
|
#source: macro-warn-3.s
|
||||||
|
#stderr: macro-warn-3.l
|
||||||
|
#objdump: -p
|
||||||
|
#pass
|
||||||
3
gas/testsuite/gas/mips/macro-warn-3.l
Normal file
3
gas/testsuite/gas/mips/macro-warn-3.l
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.*: Assembler messages:
|
||||||
|
.*:4: Warning: Macro instruction expanded into multiple instructions
|
||||||
|
.*:7: Warning: Macro instruction expanded into multiple instructions.*slot
|
||||||
10
gas/testsuite/gas/mips/macro-warn-3.s
Normal file
10
gas/testsuite/gas/mips/macro-warn-3.s
Normal file
@@ -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
|
||||||
5
gas/testsuite/gas/mips/macro-warn-4.d
Normal file
5
gas/testsuite/gas/mips/macro-warn-4.d
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#as: -32
|
||||||
|
#source: macro-warn-4.s
|
||||||
|
#stderr: macro-warn-4.l
|
||||||
|
#objdump: -p
|
||||||
|
#pass
|
||||||
3
gas/testsuite/gas/mips/macro-warn-4.l
Normal file
3
gas/testsuite/gas/mips/macro-warn-4.l
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.*: Assembler messages:
|
||||||
|
.*:3: Warning: Macro instruction expanded into multiple instructions
|
||||||
|
.*:5: Warning: Macro instruction expanded into multiple instructions.*slot
|
||||||
7
gas/testsuite/gas/mips/macro-warn-4.s
Normal file
7
gas/testsuite/gas/mips/macro-warn-4.s
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
.set noreorder
|
||||||
|
.set nomacro
|
||||||
|
la $4,late_big
|
||||||
|
jr $5
|
||||||
|
la $4,late_big
|
||||||
|
.comm sdata,4
|
||||||
|
late_big:
|
||||||
@@ -735,4 +735,13 @@ if { [istarget mips*-*-*] } then {
|
|||||||
run_dump_test "ldstla-n64"
|
run_dump_test "ldstla-n64"
|
||||||
run_dump_test "ldstla-n64-shared"
|
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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user