aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/mri/.Sanitize1
-rw-r--r--gas/testsuite/gas/mri/immconst.d22
2 files changed, 23 insertions, 0 deletions
diff --git a/gas/testsuite/gas/mri/.Sanitize b/gas/testsuite/gas/mri/.Sanitize
index 10c3345..0a105f6 100644
--- a/gas/testsuite/gas/mri/.Sanitize
+++ b/gas/testsuite/gas/mri/.Sanitize
@@ -43,6 +43,7 @@ for.d
for.s
if.d
if.s
+immconst.d
label.d
label.s
mri.exp
diff --git a/gas/testsuite/gas/mri/immconst.d b/gas/testsuite/gas/mri/immconst.d
new file mode 100644
index 0000000..531affd
--- /dev/null
+++ b/gas/testsuite/gas/mri/immconst.d
@@ -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