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.
This commit is contained in:
parent
d6a3970174
commit
a6ccbdd30e
@ -1,3 +1,12 @@
|
||||
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.
|
||||
|
@ -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
|
||||
|
@ -7,3 +7,6 @@ Disassembly of section .text:
|
||||
|
||||
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
|
@ -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
|
||||
|
@ -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" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user