aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorClaudiu Zissulescu <claziss@synopsys.com>2016-12-05 15:09:48 +0100
committerClaudiu Zissulescu <claziss@synopsys.com>2016-12-05 15:16:28 +0100
commit0691188992efa4afab80bfdf966479bc331ce0a4 (patch)
tree343ab6c2ccc718858963d6fe801a296ada50a907 /gas/testsuite
parent49e8a725825c77aacc7458b9d7771cb2fa2f64c7 (diff)
downloadgdb-0691188992efa4afab80bfdf966479bc331ce0a4.zip
gdb-0691188992efa4afab80bfdf966479bc331ce0a4.tar.gz
gdb-0691188992efa4afab80bfdf966479bc331ce0a4.tar.bz2
[ARC] Don't check extAuxRegister second argument for sign.
gas/ 2016-12-05 Claudiu Zissulescu <claziss@synopsys.com> * testsuite/gas/arc/textauxregister-1.d: New file. * testsuite/gas/arc/textauxregister-1.s: Likewise. * testsuite/gas/arc/textcondcode-err.s: Likewise. * testsuite/gas/arc/textcoreregister-err.s: Likewise. * config/tc-arc.c (tokenize_extregister): Return bfd_boolean, don't check second argument of extension auxiliary register for signess. (arc_extcorereg): Consider the return of tokenize_extregister function call.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/arc/textauxregister-1.d10
-rw-r--r--gas/testsuite/gas/arc/textauxregister-1.s5
-rw-r--r--gas/testsuite/gas/arc/textcondcode-err.s2
-rw-r--r--gas/testsuite/gas/arc/textcoreregister-err.s2
4 files changed, 19 insertions, 0 deletions
diff --git a/gas/testsuite/gas/arc/textauxregister-1.d b/gas/testsuite/gas/arc/textauxregister-1.d
new file mode 100644
index 0000000..ce8e52e
--- /dev/null
+++ b/gas/testsuite/gas/arc/textauxregister-1.d
@@ -0,0 +1,10 @@
+#objdump: -dr
+
+.*: +file format .*arc.*
+
+
+Disassembly of section .text:
+
+[0-9a-f]+ <.text>:
+\s+0:\s+222a 0f80 8001 8000\s+lr\s+r2,\[myreg1\]
+\s+8:\s+21aa 003c\s+lr\s+r1,\[myreg2\]
diff --git a/gas/testsuite/gas/arc/textauxregister-1.s b/gas/testsuite/gas/arc/textauxregister-1.s
new file mode 100644
index 0000000..b4c5ead0
--- /dev/null
+++ b/gas/testsuite/gas/arc/textauxregister-1.s
@@ -0,0 +1,5 @@
+ .extAuxRegister myreg1, 0x80018000, r|w
+ .extAuxRegister myreg2, -256, r|w
+
+ lr r2, [myreg1]
+ lr r1, [myreg2]
diff --git a/gas/testsuite/gas/arc/textcondcode-err.s b/gas/testsuite/gas/arc/textcondcode-err.s
new file mode 100644
index 0000000..0a0a954
--- /dev/null
+++ b/gas/testsuite/gas/arc/textcondcode-err.s
@@ -0,0 +1,2 @@
+; { dg-do assemble { target arc*-*-* } }
+ .extCondCode cctst, -12 ; { dg-error "Error: extCondCode's second argument cannot be a negative number -12" }
diff --git a/gas/testsuite/gas/arc/textcoreregister-err.s b/gas/testsuite/gas/arc/textcoreregister-err.s
new file mode 100644
index 0000000..2b7d918
--- /dev/null
+++ b/gas/testsuite/gas/arc/textcoreregister-err.s
@@ -0,0 +1,2 @@
+; { dg-do assemble { target arc*-*-* } }
+ .extCoreRegister r32c, -32, r|w, can_shortcut ; { dg-error "Error: extCoreRegister's second argument cannot be a negative number -32" }