1 ; Test ARC specific assembler warnings
3 ; { dg-do assemble { target arc-*-* } }
6 mov r0,256 ; { dg-warning "8 byte instruction in delay slot" "8 byte instruction in delay slot" }
8 j.d foo ; { dg-warning "8 byte jump instruction with delay slot" "8 byte jump instruction with delay slot" }
12 .extCoreRegister roscreg,45,r,can_shortcut
13 .extCoreRegister woscreg,46,w,can_shortcut
15 add r0,woscreg,r1 ; { dg-warning "Error: attempt to read writeonly register" }
16 add roscreg,r1,r2 ; { dg-warning "Error: attempt to set readonly register" }