+2005-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
+
+ * 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 <rsandifo@redhat.com>
* gas/mips/noat-1.d: Add -mips1 to assembler options.
run_dump_test bic
run_dump_test xor
run_dump_test nop
+ run_dump_test extensions
}
# ARC library extensions
00000000 <condcodeTest>:
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
.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
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" }