aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/testsuite/gas/arc/shortlimm_a7.d11
-rw-r--r--gas/testsuite/gas/arc/shortlimm_a7.s5
-rw-r--r--gas/testsuite/gas/arc/shortlimm_hs.d15
-rw-r--r--gas/testsuite/gas/arc/shortlimm_hs.s9
5 files changed, 47 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index da3bc5a..c220884 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
+2016-10-14 Claudiu Zissulescu <claziss@synopsys.com>
+
+ * testsuite/gas/arc/shortlimm_a7.d: New file.
+ * testsuite/gas/arc/shortlimm_a7.s: Likewise.
+ * testsuite/gas/arc/shortlimm_hs.d: Likewise.
+ * testsuite/gas/arc/shortlimm_hs.s: Likewise.
+
2016-10-11 Nick Clifton <nickc@redhat.com>
* gas/arm/tls.d: Adjust output to match change in objdump.
diff --git a/gas/testsuite/gas/arc/shortlimm_a7.d b/gas/testsuite/gas/arc/shortlimm_a7.d
new file mode 100644
index 0000000..efed86f
--- /dev/null
+++ b/gas/testsuite/gas/arc/shortlimm_a7.d
@@ -0,0 +1,11 @@
+#objdump: -d
+
+.*: +file format .*arc.*
+
+
+Disassembly of section .text:
+
+00000000 <.text>:
+ 0: 70c7 0000 1000 add_s r0,r0,0x1000
+ 6: 72d7 0000 1000 cmp_s r2,0x1000
+ c: 72cf 0000 1000 mov_s r2,0x1000
diff --git a/gas/testsuite/gas/arc/shortlimm_a7.s b/gas/testsuite/gas/arc/shortlimm_a7.s
new file mode 100644
index 0000000..fd14206
--- /dev/null
+++ b/gas/testsuite/gas/arc/shortlimm_a7.s
@@ -0,0 +1,5 @@
+ .cpu ARC700
+ .text
+ add_s r0,r0,0x1000
+ cmp_s r2,0x1000
+ mov_s r2,0x1000
diff --git a/gas/testsuite/gas/arc/shortlimm_hs.d b/gas/testsuite/gas/arc/shortlimm_hs.d
new file mode 100644
index 0000000..0313cff
--- /dev/null
+++ b/gas/testsuite/gas/arc/shortlimm_hs.d
@@ -0,0 +1,15 @@
+#objdump: -d
+
+.*: +file format .*arc.*
+
+
+Disassembly of section .text:
+
+00000000 <.text>:
+ 0: 70c3 0000 1000 add_s r0,r0,0x1000
+ 6: 71c7 0000 1001 add_s 0,0x1001,1
+ c: 72d3 0000 1000 cmp_s r2,0x1000
+ 12: 71d7 0000 1000 cmp_s 0x1000,1
+ 18: 42c3 0000 1000 mov_s r2,0x1000
+ 1e: 46db 0000 1000 mov_s 0,0x1000
+ 24: 72df 0000 1000 mov_s.ne r2,0x1000
diff --git a/gas/testsuite/gas/arc/shortlimm_hs.s b/gas/testsuite/gas/arc/shortlimm_hs.s
new file mode 100644
index 0000000..3f2be12
--- /dev/null
+++ b/gas/testsuite/gas/arc/shortlimm_hs.s
@@ -0,0 +1,9 @@
+ .cpu HS
+ .text
+ add_s r0,r0,0x1000
+ add_s 0,0x1001,1
+ cmp_s r2,0x1000
+ cmp_s 0x1000,1
+ mov_s r2,0x1000
+ mov_s 0,0x1000
+ mov_s.ne r2,0x1000