* gas/mri/immconst.d: New test.
* gas/mri/mri.exp: Run it. * gas/mri/constants.s: Test immediate constants. * gas/mri/constants.d: Corresponding change.
This commit is contained in:
parent
73a684473d
commit
a42cadde44
2 changed files with 23 additions and 0 deletions
|
@ -43,6 +43,7 @@ for.d
|
|||
for.s
|
||||
if.d
|
||||
if.s
|
||||
immconst.d
|
||||
label.d
|
||||
label.s
|
||||
mri.exp
|
||||
|
|
22
gas/testsuite/gas/mri/immconst.d
Normal file
22
gas/testsuite/gas/mri/immconst.d
Normal file
|
@ -0,0 +1,22 @@
|
|||
#objdump: -d
|
||||
#name: MRI immediate constants
|
||||
#as: -M
|
||||
#source: constants.s
|
||||
|
||||
# Test MRI immediate constants
|
||||
|
||||
.*: file format .*
|
||||
|
||||
Disassembly of section .text:
|
||||
0+000 <foo> moveq #10,%d0
|
||||
0+002 <foo\+2> moveq #10,%d0
|
||||
0+004 <foo\+4> moveq #10,%d0
|
||||
0+006 <foo\+6> moveq #10,%d0
|
||||
0+008 <foo\+8> moveq #10,%d0
|
||||
0+00a <foo\+a> moveq #10,%d0
|
||||
0+00c <foo\+c> moveq #10,%d0
|
||||
0+00e <foo\+e> moveq #10,%d0
|
||||
0+010 <foo\+10> moveq #10,%d0
|
||||
0+012 <foo\+12> moveq #97,%d0
|
||||
0+014 <foo\+14> moveq #97,%d0
|
||||
0+016 <foo\+16> nop
|
Loading…
Reference in a new issue