1# RUN: not llvm-mc -disassemble %s -show-encoding -triple thumbv8 2>&1 | FileCheck %s 2 3# Coprocessors other than CP10, CP11, CP14 and CP15 are undefined in ARMv8; 4# but in ARMv7, all these instructions are valid 5 6# RUN: llvm-mc -triple thumbv7 -show-encoding -disassemble %s | FileCheck %s --check-prefix=CHECK-V7 7 8[0x00 0xee 0x00 0x01] 9# CHECK-V7: cdp 10# CHECK: invalid instruction encoding 11# CHECK-NEXT: [0x00 0xee 0x00 0x01] 12 13[0x00 0xee 0x00 0x0e] 14# CHECK-V7: cdp 15# CHECK: invalid instruction encoding 16# CHECK-NEXT: [0x00 0xee 0x00 0x0e] 17 18[0x00 0xee 0x00 0x0f] 19# CHECK-V7: cdp 20# CHECK: invalid instruction encoding 21# CHECK-NEXT: [0x00 0xee 0x00 0x0f] 22 23[0x00 0xfe 0x00 0x01] 24# CHECK-V7: cdp2 25# CHECK: invalid instruction encoding 26# CHECK-NEXT: [0x00 0xfe 0x00 0x01] 27 28[0x00 0xfe 0x00 0x0e] 29# CHECK-V7: cdp2 30# CHECK: invalid instruction encoding 31# CHECK-NEXT: [0x00 0xfe 0x00 0x0e] 32 33[0x00 0xfe 0x00 0x0f] 34# CHECK-V7: cdp2 35# CHECK: invalid instruction encoding 36# CHECK-NEXT: [0x00 0xfe 0x00 0x0f] 37 38[0x00 0xee 0x10 0x01] 39# CHECK-V7: mcr 40# CHECK: invalid instruction encoding 41# CHECK-NEXT: [0x00 0xee 0x10 0x01] 42 43[0x00 0xfe 0x10 0x01] 44# CHECK-V7: mcr2 45# CHECK: invalid instruction encoding 46# CHECK-NEXT: [0x00 0xfe 0x10 0x01] 47 48[0x00 0xfe 0x10 0x0e] 49# CHECK-V7: mcr2 50# CHECK: invalid instruction encoding 51# CHECK-NEXT: [0x00 0xfe 0x10 0x0e] 52 53[0x00 0xfe 0x10 0x0f] 54# CHECK-V7: mcr2 55# CHECK: invalid instruction encoding 56# CHECK-NEXT: [0x00 0xfe 0x10 0x0f] 57 58[0x10 0xee 0x10 0x01] 59# CHECK-V7: mrc 60# CHECK: invalid instruction encoding 61# CHECK-NEXT: [0x10 0xee 0x10 0x01] 62 63[0x10 0xfe 0x10 0x01] 64# CHECK-V7: mrc2 65# CHECK: invalid instruction encoding 66# CHECK-NEXT: [0x10 0xfe 0x10 0x01] 67 68[0x10 0xfe 0x10 0x0e] 69# CHECK-V7: mrc2 70# CHECK: invalid instruction encoding 71# CHECK-NEXT: [0x10 0xfe 0x10 0x0e] 72 73[0x10 0xfe 0x10 0x0f] 74# CHECK-V7: mrc2 75# CHECK: invalid instruction encoding 76# CHECK-NEXT: [0x10 0xfe 0x10 0x0f] 77 78[0x40 0xec 0x00 0x01] 79# CHECK-V7: mcrr 80# CHECK: invalid instruction encoding 81# CHECK-NEXT: [0x40 0xec 0x00 0x01] 82 83[0x40 0xfc 0x00 0x01] 84# CHECK-V7: mcrr2 85# CHECK: invalid instruction encoding 86# CHECK-NEXT: [0x40 0xfc 0x00 0x01] 87 88[0x40 0xfc 0x00 0x0e] 89# CHECK-V7: mcrr2 90# CHECK: invalid instruction encoding 91# CHECK-NEXT: [0x40 0xfc 0x00 0x0e] 92 93[0x40 0xfc 0x00 0x0f] 94# CHECK-V7: mcrr2 95# CHECK: invalid instruction encoding 96# CHECK-NEXT: [0x40 0xfc 0x00 0x0f] 97 98[0x50 0xec 0x00 0x01] 99# CHECK-V7: mrrc 100# CHECK: invalid instruction encoding 101# CHECK-NEXT: [0x50 0xec 0x00 0x01] 102 103[0x50 0xfc 0x00 0x0e] 104# CHECK-V7: mrrc2 105# CHECK: invalid instruction encoding 106# CHECK-NEXT: [0x50 0xfc 0x00 0x0e] 107 108[0x50 0xfc 0x00 0x0f] 109# CHECK-V7: mrrc2 110# CHECK: invalid instruction encoding 111# CHECK-NEXT: [0x50 0xfc 0x00 0x0f] 112 113[0x50 0xfc 0x00 0x01] 114# CHECK-V7: mrrc2 115# CHECK: invalid instruction encoding 116# CHECK-NEXT: [0x50 0xfc 0x00 0x01] 117 118[0x80 0xec 0x00 0x01] 119# CHECK-V7: stc 120# CHECK: invalid instruction encoding 121# CHECK-NEXT: [0x80 0xec 0x00 0x01] 122 123[0x80 0xec 0x00 0x0f] 124# CHECK-V7: stc 125# CHECK: invalid instruction encoding 126# CHECK-NEXT: [0x80 0xec 0x00 0x0f] 127 128[0x80 0xfc 0x00 0x01] 129# CHECK-V7: stc2 130# CHECK: invalid instruction encoding 131# CHECK-NEXT: [0x80 0xfc 0x00 0x01] 132 133[0x80 0xfc 0x00 0x0e] 134# CHECK-V7: stc2 135# CHECK: invalid instruction encoding 136# CHECK-NEXT: [0x80 0xfc 0x00 0x0e] 137 138[0x80 0xfc 0x00 0x0f] 139# CHECK-V7: stc2 140# CHECK: invalid instruction encoding 141# CHECK-NEXT: [0x80 0xfc 0x00 0x0f] 142 143[0x90 0xec 0x00 0x01] 144# CHECK-V7: ldc 145# CHECK: invalid instruction encoding 146# CHECK-NEXT: [0x90 0xec 0x00 0x01] 147 148[0x90 0xec 0x00 0x0f] 149# CHECK-V7: ldc 150# CHECK: invalid instruction encoding 151# CHECK-NEXT: [0x90 0xec 0x00 0x0f] 152 153[0x90 0xfc 0x00 0x01] 154# CHECK-V7: ldc2 155# CHECK: invalid instruction encoding 156# CHECK-NEXT: [0x90 0xfc 0x00 0x01] 157 158[0x90 0xfc 0x00 0x0e] 159# CHECK-V7: ldc2 160# CHECK: invalid instruction encoding 161# CHECK-NEXT: [0x90 0xfc 0x00 0x0e] 162 163[0x90 0xfc 0x00 0x0f] 164# CHECK-V7: ldc2 165# CHECK: invalid instruction encoding 166# CHECK-NEXT: [0x90 0xfc 0x00 0x0f] 167 168