1; { dg-do assemble } 2; { dg-options "--march=v0_v10" } 3 4; Check that valid v32-specific mnemonics and operands are not 5; recognized for v10. (Also used elsewhere to check that valid 6; v32-specific insns and operands are recognized at assembly and 7; disassembly for v32.) 8 9 .text 10here: 11 move.d [$acr],$r3 ; No error - $acr treated as a symbol. 12 move.d [$r5+],$acr ; { dg-error "(Illegal|Invalid) operands" } 13 move.d $acr,$r7 ; No error - $acr treated as a symbol. 14 move.d $r8,$acr ; { dg-error "(Illegal|Invalid) operands" } 15 move $acr,$srp ; No error - $acr treated as a symbol. 16 addc $r0,$r0 ; { dg-error "Unknown opcode" } 17 addc $acr,$acr ; { dg-error "Unknown opcode" } 18 addc $r6,$r1 ; { dg-error "Unknown opcode" } 19 addc [$r3],$r1 ; { dg-error "Unknown opcode" } 20 addc [$r0],$r0 ; { dg-error "Unknown opcode" } 21 addc [$acr],$acr ; { dg-error "Unknown opcode" } 22 addc [$acr],$r1 ; { dg-error "Unknown opcode" } 23 addc [$r3+],$r1 ; { dg-error "Unknown opcode" } 24 addi $r8.w,$r2,$acr ; { dg-error "(Illegal|Invalid) operands" } 25 addi $r0.b,$r0,$acr ; { dg-error "(Illegal|Invalid) operands" } 26 addi $acr.d,$acr,$acr ; { dg-error "(Illegal|Invalid) operands" } 27 addo.d [$r3],$r7,$acr ; { dg-error "Unknown opcode" } 28 addo.d [$r13+],$r7,$acr ; { dg-error "Unknown opcode" } 29 addo.d [$r3],$acr,$acr ; { dg-error "Unknown opcode" } 30 addo.b [$r0],$r0,$acr ; { dg-error "Unknown opcode" } 31 addo.d [$acr],$acr,$acr ; { dg-error "Unknown opcode" } 32 addo.b -1,$acr,$acr ; { dg-error "Unknown opcode" } 33 addo.w -1,$acr,$acr ; { dg-error "Unknown opcode" } 34 addo.d -1,$acr,$acr ; { dg-error "Unknown opcode" } 35 addo.b extsym1,$r3,$acr ; { dg-error "Unknown opcode" } 36 addo.w extsym2,$r3,$acr ; { dg-error "Unknown opcode" } 37 addo.d extsym3,$r3,$acr ; { dg-error "Unknown opcode" } 38 addo.b 127,$acr,$acr ; { dg-error "Unknown opcode" } 39 addo.w 32767,$acr,$acr ; { dg-error "Unknown opcode" } 40 addo.d 0xffffff,$acr,$acr ; { dg-error "Unknown opcode" } 41 addo.b -128,$acr,$acr ; { dg-error "Unknown opcode" } 42 addo.w -32768,$acr,$acr ; { dg-error "Unknown opcode" } 43 addo.d 0xffffffff,$acr,$acr ; { dg-error "Unknown opcode" } 44 lapc .,$r0 ; { dg-error "Unknown opcode" } 45 lapc .+30,$r4 ; { dg-error "Unknown opcode" } 46 lapc .+30,$acr ; { dg-error "Unknown opcode" } 47 lapc extsym4,$acr ; { dg-error "Unknown opcode" } 48 lapc extsym5,$r4 ; { dg-error "Unknown opcode" } 49 lapc here,$r4 ; { dg-error "Unknown opcode" } 50 addoq -1,$acr,$acr ; { dg-error "Unknown opcode" } 51 addoq 0,$r0,$acr ; { dg-error "Unknown opcode" } 52 addoq 127,$r4,$acr ; { dg-error "Unknown opcode" } 53 addoq extsym6,$r4,$acr ; { dg-error "Unknown opcode" } 54 bas 0xffffffff,$srp ; { dg-error "Unknown opcode" } 55 bas extsym7,$bz ; { dg-error "Unknown opcode" } 56 bas here,$erp ; { dg-error "Unknown opcode" } 57 basc 0xffffffff,$srp ; { dg-error "Unknown opcode" } 58 .dword 0 59 basc extsym8,$bz ; { dg-error "Unknown opcode" } 60 .dword 0 61 basc here,$erp ; { dg-error "Unknown opcode" } 62 .dword 0 63 bsb . ; { dg-error "Unknown opcode" } 64 nop 65 bsb here ; { dg-error "Unknown opcode" } 66 nop 67 bsr extsym9 ; { dg-error "Unknown opcode" } 68 bsr here ; { dg-error "Unknown opcode" } 69 bsrc 0xffffffff ; { dg-error "Unknown opcode" } 70 .dword 0 71 bsrc extsym10 ; { dg-error "Unknown opcode" } 72 .dword 0 73 bsrc here ; { dg-error "Unknown opcode" } 74 .dword 0 75 fidxd [$r0] ; { dg-error "Unknown opcode" } 76 fidxd [$acr] ; { dg-error "Unknown opcode" } 77 fidxi [$r0] ; { dg-error "Unknown opcode" } 78 fidxi [$acr] ; { dg-error "Unknown opcode" } 79 ftagd [$r0] ; { dg-error "Unknown opcode" } 80 ftagd [$acr] ; { dg-error "Unknown opcode" } 81 ftagi [$r0] ; { dg-error "Unknown opcode" } 82 ftagi [$acr] ; { dg-error "Unknown opcode" } 83 jas $r0,$bz ; { dg-error "Unknown opcode" } 84 jas $acr,$usp ; { dg-error "Unknown opcode" } 85 jas extsym9,$bz ; { dg-error "Unknown opcode" } 86 jas here,$srp ; { dg-error "Unknown opcode" } 87 jasc $r0,$bz ; { dg-error "Unknown opcode" } 88 .dword 0 89 jasc $acr,$usp ; { dg-error "Unknown opcode" } 90 .dword 0 91 jasc 0xffffffff,$srp ; { dg-error "Unknown opcode" } 92 .dword 0 93 jasc extsym11,$bz ; { dg-error "Unknown opcode" } 94 .dword 0 95 jasc here,$erp ; { dg-error "Unknown opcode" } 96 .dword 0 97 jump $srp ; No error - $srp treated as a symbol. 98 jump $bz ; No error - $bz treated as a symbol. 99 mcp $p0,$r0 ; { dg-error "Unknown opcode" } 100 mcp $mof,$acr ; { dg-error "Unknown opcode" } 101 mcp $srp,$r2 ; { dg-error "Unknown opcode" } 102 move $s0,$r0 ; { dg-error "(Illegal|Invalid) operands" } 103 move $s15,$acr ; { dg-error "(Illegal|Invalid) operands" } 104 move $s5,$r3 ; { dg-error "(Illegal|Invalid) operands" } 105 move $r0,$s0 ; { dg-error "(Illegal|Invalid) operands" } 106 move $acr,$s15 ; { dg-error "(Illegal|Invalid) operands" } 107 move $r4,$s10 ; { dg-error "(Illegal|Invalid) operands" } 108 rfe ; { dg-error "Unknown opcode" } 109 rfg ; { dg-error "Unknown opcode" } 110 rete ; { dg-error "Unknown opcode" } 111 retn ; { dg-error "Unknown opcode" } 112 ssb $r0 ; { dg-error "Unknown opcode" } 113 ssb $acr ; { dg-error "Unknown opcode" } 114 ssb $r10 ; { dg-error "Unknown opcode" } 115 sfe ; { dg-error "Unknown opcode" } 116 halt ; { dg-error "Unknown opcode" } 117 rfn ; { dg-error "Unknown opcode" } 118