mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 12:03:41 +08:00
PR gas/6607
* gas/mmix/err-loc-10.s, gas/mmix/err-loc-9.s, gas/mmix/loc-6.d, gas/mmix/loc-6.s, gas/mmix/loc-7.d, gas/mmix/loc-7.s: New tests.
This commit is contained in:
parent
1afc8defa6
commit
4758f280d4
@ -1,3 +1,9 @@
|
||||
2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
|
||||
|
||||
PR gas/6607
|
||||
* gas/mmix/err-loc-10.s, gas/mmix/err-loc-9.s, gas/mmix/loc-6.d,
|
||||
gas/mmix/loc-6.s, gas/mmix/loc-7.d, gas/mmix/loc-7.s: New tests.
|
||||
|
||||
2008-06-12 Adam Nemet <anemet@caviumnetworks.com>
|
||||
|
||||
* gas/mips/octeon.s, gas/mips/octeon.d: Add tests for baddu,
|
||||
|
5
gas/testsuite/gas/mmix/err-loc-10.s
Normal file
5
gas/testsuite/gas/mmix/err-loc-10.s
Normal file
@ -0,0 +1,5 @@
|
||||
% { dg-do assemble { target mmix-*-* } }
|
||||
LOC (#80 << 56) + #200
|
||||
TETRA 1
|
||||
LOC (#80 << 56) + #100 % { dg-error "LOC expression stepping backwards" "" }
|
||||
TETRA 2
|
5
gas/testsuite/gas/mmix/err-loc-9.s
Normal file
5
gas/testsuite/gas/mmix/err-loc-9.s
Normal file
@ -0,0 +1,5 @@
|
||||
% { dg-do assemble { target mmix-*-* } }
|
||||
LOC (#70 << 56) + #200
|
||||
TETRA 1
|
||||
LOC (#70 << 56) + #100 % { dg-error "LOC expression stepping backwards" "" }
|
||||
TETRA 2
|
10
gas/testsuite/gas/mmix/loc-6.d
Normal file
10
gas/testsuite/gas/mmix/loc-6.d
Normal file
@ -0,0 +1,10 @@
|
||||
#readelf: -srx1
|
||||
There are no relocations in this file\.
|
||||
|
||||
Symbol table '\.symtab' contains . entries:
|
||||
Num: Value Size Type Bind Vis Ndx Name
|
||||
#...
|
||||
.: 8000000000000000 0 NOTYPE GLOBAL DEFAULT ABS __\.MMIX\.start\.\.text
|
||||
|
||||
Hex dump of section '\.text':
|
||||
0x0+ f4000000 .*
|
5
gas/testsuite/gas/mmix/loc-6.s
Normal file
5
gas/testsuite/gas/mmix/loc-6.s
Normal file
@ -0,0 +1,5 @@
|
||||
% Check that we don't get an error on the LOC directive; that we don't
|
||||
% interpret it as a (section-relative) negative number.
|
||||
|
||||
LOC #8000000000000000
|
||||
Boot GETA $0,Boot %set dynamic- and forced-trap handler
|
11
gas/testsuite/gas/mmix/loc-7.d
Normal file
11
gas/testsuite/gas/mmix/loc-7.d
Normal file
@ -0,0 +1,11 @@
|
||||
#readelf: -srx1
|
||||
There are no relocations in this file\.
|
||||
|
||||
Symbol table '\.symtab' contains . entries:
|
||||
Num: Value Size Type Bind Vis Ndx Name
|
||||
#...
|
||||
.: 8000000000042000 0 NOTYPE GLOBAL DEFAULT ABS __\.MMIX\.start\.\.text
|
||||
|
||||
Hex dump of section '\.text':
|
||||
0x0+ f4000000 00000000 00000000 00000000 .*
|
||||
0x0+10 f4050000 .*
|
7
gas/testsuite/gas/mmix/loc-7.s
Normal file
7
gas/testsuite/gas/mmix/loc-7.s
Normal file
@ -0,0 +1,7 @@
|
||||
% Check that we don't get an error on the LOC directive; that we don't
|
||||
% interpret it as a (section-relative) negative number.
|
||||
|
||||
LOC #8000000000042000
|
||||
Boot GETA $0,Boot %set dynamic- and forced-trap handler
|
||||
LOC #8000000000042010
|
||||
Toot GETA $5,Toot
|
Loading…
Reference in New Issue
Block a user