From: Ramana Radhakrishnan Date: Thu, 3 Mar 2005 12:13:23 +0000 (+0000) Subject: 2005-03-03 Ramana Radhakrishnan X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6ccbdd30ef12684ee64a3c322d20e7415eb9308;p=binutils-gdb.git 2005-03-03 Ramana Radhakrishnan * gas/arc/extensions.s: Add tests for extcoreregister * gas/arc/extensions.d: Likewise. * gas/arc/warn.s: Warnings for readonly core registers accessed . * gas/arc/warn.d:Likewise. * testsuite/gas/arc/arc.exp:Run extensions testcase. --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 02b92ced0ea..3725dded97c 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2005-03-03 Ramana Radhakrishnan + + * gas/arc/extensions.s: Add tests for extcoreregister + * gas/arc/extensions.d: Likewise. + * gas/arc/warn.s: Warnings for readonly core registers + accessed . + * gas/arc/warn.d:Likewise. + * testsuite/gas/arc/arc.exp:Run extensions testcase. + 2005-03-03 Richard Sandiford * gas/mips/noat-1.d: Add -mips1 to assembler options. diff --git a/gas/testsuite/gas/arc/arc.exp b/gas/testsuite/gas/arc/arc.exp index 2e115f92655..3947bbee017 100644 --- a/gas/testsuite/gas/arc/arc.exp +++ b/gas/testsuite/gas/arc/arc.exp @@ -37,6 +37,7 @@ if [istarget arc*-*-*] then { run_dump_test bic run_dump_test xor run_dump_test nop + run_dump_test extensions } # ARC library extensions diff --git a/gas/testsuite/gas/arc/extensions.d b/gas/testsuite/gas/arc/extensions.d index 07bd183987c..dc0d80b5f51 100644 --- a/gas/testsuite/gas/arc/extensions.d +++ b/gas/testsuite/gas/arc/extensions.d @@ -7,3 +7,6 @@ Disassembly of section .text: 00000000 : 0: 12 02 00 40 40000212 add.isbusy r0,r0,r1 + 4: 00 02 60 45 45600200 add rwscreg,r0,r1 + 8: 00 d8 00 40 4000d800 add r0,r1,roscreg + c: 00 02 a0 45 45a00200 add woscreg,r0,r1 \ No newline at end of file diff --git a/gas/testsuite/gas/arc/extensions.s b/gas/testsuite/gas/arc/extensions.s index 558dcb581b8..44484eb06e8 100644 --- a/gas/testsuite/gas/arc/extensions.s +++ b/gas/testsuite/gas/arc/extensions.s @@ -1,4 +1,10 @@ .extCondCode isbusy, 0x12 +.extCoreRegister rwscreg,43,r|w,can_shortcut +.extCoreRegister roscreg,44,r,can_shortcut +.extCoreRegister woscreg,45,w,can_shortcut .section .text condcodeTest: add.isbusy r0,r0,r1 + add rwscreg,r0,r1 + add r0,r1,roscreg + add woscreg,r0,r1 diff --git a/gas/testsuite/gas/arc/warn.s b/gas/testsuite/gas/arc/warn.s index 060a74edab1..6df1185dadb 100644 --- a/gas/testsuite/gas/arc/warn.s +++ b/gas/testsuite/gas/arc/warn.s @@ -9,3 +9,8 @@ mov r0,r1 foo: +.extCoreRegister roscreg,45,r,can_shortcut +.extCoreRegister woscreg,46,w,can_shortcut + .section .text + add r0,woscreg,r1 ; { dg-warning "Error: attempt to read writeonly register" } + add roscreg,r1,r2 ; { dg-warning "Error: attempt to set readonly register" }