1# RUN: not llvm-mc -disassemble -triple=thumbv8.1m.main-none-eabi -show-encoding %s 2> %t | FileCheck %s 2# RUN: FileCheck --check-prefix=ERROR < %t %s 3 4[0x52 0xea 0x22 0x9e] 5# CHECK: cinc lr, r2, lo @ encoding: [0x52,0xea,0x22,0x9e] 6 7[0x57 0xea 0x47 0x9e] 8# CHECK: cinc lr, r7, pl @ encoding: [0x57,0xea,0x47,0x9e] 9 10[0x5c 0xea 0x3c 0xae] 11# CHECK: cinv lr, r12, hs @ encoding: [0x5c,0xea,0x3c,0xae] 12 13[0x5a 0xea 0x3a 0xbe] 14# CHECK: cneg lr, r10, hs @ encoding: [0x5a,0xea,0x3a,0xbe] 15 16[0x59 0xea 0x7b 0x89] 17# CHECK: csel r9, r9, r11, vc @ encoding: [0x59,0xea,0x7b,0x89] 18 19[0x5f 0xea 0x1f 0x9e] 20# CHECK: cset lr, eq @ encoding: [0x5f,0xea,0x1f,0x9e] 21 22[0x5f 0xea 0x3f 0xae] 23# CHECK: csetm lr, hs @ encoding: [0x5f,0xea,0x3f,0xae] 24 25[0x5a 0xea 0xd7 0x9e] 26# CHECK: csinc lr, r10, r7, le @ encoding: [0x5a,0xea,0xd7,0x9e] 27 28[0x55 0xea 0x2f 0xae] 29# CHECK: csinv lr, r5, zr, hs @ encoding: [0x55,0xea,0x2f,0xae] 30 31[0x52 0xea 0x42 0xae] 32# CHECK: cinv lr, r2, pl @ encoding: [0x52,0xea,0x42,0xae] 33 34[0x51 0xea 0x7b 0xbe] 35# CHECK: csneg lr, r1, r11, vc @ encoding: [0x51,0xea,0x7b,0xbe] 36 37[0x50,0xea,0x01,0x80] 38# CHECK: csel r0, r0, r1, eq @ encoding: [0x50,0xea,0x01,0x80] 39 40[0x51,0xea,0x02,0x8d] 41# CHECK: csel sp, r1, r2, eq @ encoding: [0x51,0xea,0x02,0x8d] 42# ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding 43 44[0x5d,0xea,0x02,0x80] 45# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding 46 47[0x51,0xea,0x0d,0x80] 48# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding 49 50[0x5f,0xea,0x0d,0x83] 51# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding 52 53[0x5d 0xea 0x22 0x9e] 54# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding 55 56[0x5d 0xea 0x47 0x9e] 57# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding 58 59[0x5d 0xea 0x3c 0xae] 60# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding 61 62[0x5d 0xea 0x3a 0xbe] 63# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding 64 65[0x5d 0xea 0x7b 0x89] 66# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding 67 68[0x5d 0xea 0x1f 0x9e] 69# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding 70 71[0x5d 0xea 0x3f 0xae] 72# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding 73 74[0x5d 0xea 0xd7 0x9e] 75# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding 76 77[0x5d 0xea 0x2f 0xae] 78# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding 79 80[0x5d 0xea 0x42 0xae] 81# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding 82 83[0x5d 0xea 0x7b 0xbe] 84# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding 85 86[0x52 0xea 0x22 0x9d] 87# ERROR: [[@LINE-1]]:2: warning: potentially undefined instruction encoding 88 89[0x57 0xea 0x47 0x9d] 90# ERROR: [[@LINE-1]]:2: warning: potentially undefined instruction encoding 91 92[0x5c 0xea 0x3c 0xad] 93# ERROR: [[@LINE-1]]:2: warning: potentially undefined instruction encoding 94 95[0x5a 0xea 0x3a 0xbd] 96# ERROR: [[@LINE-1]]:2: warning: potentially undefined instruction encoding 97 98[0x59 0xea 0x7b 0x8d] 99# ERROR: [[@LINE-1]]:2: warning: potentially undefined instruction encoding 100 101[0x5f 0xea 0x1f 0x9d] 102# ERROR: [[@LINE-1]]:2: warning: potentially undefined instruction encoding 103 104[0x5f 0xea 0x3f 0xad] 105# ERROR: [[@LINE-1]]:2: warning: potentially undefined instruction encoding 106 107[0x5a 0xea 0xd7 0x9d] 108# ERROR: [[@LINE-1]]:2: warning: potentially undefined instruction encoding 109 110[0x55 0xea 0x2f 0xad] 111# ERROR: [[@LINE-1]]:2: warning: potentially undefined instruction encoding 112 113[0x52 0xea 0x42 0xad] 114# ERROR: [[@LINE-1]]:2: warning: potentially undefined instruction encoding 115 116[0x51 0xea 0x7b 0xbd] 117# ERROR: [[@LINE-1]]:2: warning: potentially undefined instruction encoding 118