1# RUN: llvm-mc -triple=ve --show-encoding < %s \ 2# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST 3# RUN: llvm-mc -triple=ve -filetype=obj < %s | llvm-objdump -d - \ 4# RUN: | FileCheck %s --check-prefixes=CHECK-INST 5 6# CHECK-INST: smir %s11, %usrcc 7# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x00,0x0b,0x22] 8smir %s11, 0 9 10# CHECK-INST: smir %s11, %usrcc 11# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x00,0x0b,0x22] 12smir %s11, %usrcc 13 14# CHECK-INST: smir %s11, %psw 15# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x01,0x0b,0x22] 16smir %s11, 1 17 18# CHECK-INST: smir %s11, %psw 19# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x01,0x0b,0x22] 20smir %s11, %psw 21 22# CHECK-INST: smir %s11, %sar 23# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x02,0x0b,0x22] 24smir %s11, 2 25 26# CHECK-INST: smir %s11, %sar 27# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x02,0x0b,0x22] 28smir %s11, %sar 29 30# CHECK-INST: smir %s11, %pmmr 31# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x07,0x0b,0x22] 32smir %s11, 7 33 34# CHECK-INST: smir %s11, %pmmr 35# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x07,0x0b,0x22] 36smir %s11, %pmmr 37 38# CHECK-INST: smir %s11, %pmcr0 39# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x08,0x0b,0x22] 40smir %s11, 8 41 42# CHECK-INST: smir %s11, %pmcr0 43# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x08,0x0b,0x22] 44smir %s11, %pmcr0 45 46# CHECK-INST: smir %s11, %pmcr1 47# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x09,0x0b,0x22] 48smir %s11, 9 49 50# CHECK-INST: smir %s11, %pmcr1 51# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x09,0x0b,0x22] 52smir %s11, %pmcr1 53 54# CHECK-INST: smir %s11, %pmcr2 55# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x0a,0x0b,0x22] 56smir %s11, 10 57 58# CHECK-INST: smir %s11, %pmcr2 59# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x0a,0x0b,0x22] 60smir %s11, %pmcr2 61 62# CHECK-INST: smir %s11, %pmcr3 63# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x0b,0x0b,0x22] 64smir %s11, 11 65 66# CHECK-INST: smir %s11, %pmcr3 67# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x0b,0x0b,0x22] 68smir %s11, %pmcr3 69 70# CHECK-INST: smir %s11, %pmc0 71# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x10,0x0b,0x22] 72smir %s11, 16 73 74# CHECK-INST: smir %s11, %pmc0 75# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x10,0x0b,0x22] 76smir %s11, %pmc0 77 78# CHECK-INST: smir %s11, %pmc1 79# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x11,0x0b,0x22] 80smir %s11, 17 81 82# CHECK-INST: smir %s11, %pmc1 83# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x11,0x0b,0x22] 84smir %s11, %pmc1 85 86# CHECK-INST: smir %s11, %pmc2 87# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x12,0x0b,0x22] 88smir %s11, 18 89 90# CHECK-INST: smir %s11, %pmc2 91# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x12,0x0b,0x22] 92smir %s11, %pmc2 93 94# CHECK-INST: smir %s11, %pmc3 95# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x13,0x0b,0x22] 96smir %s11, 19 97 98# CHECK-INST: smir %s11, %pmc3 99# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x13,0x0b,0x22] 100smir %s11, %pmc3 101 102# CHECK-INST: smir %s11, %pmc4 103# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x14,0x0b,0x22] 104smir %s11, 20 105 106# CHECK-INST: smir %s11, %pmc4 107# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x14,0x0b,0x22] 108smir %s11, %pmc4 109 110# CHECK-INST: smir %s11, %pmc5 111# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x15,0x0b,0x22] 112smir %s11, 21 113 114# CHECK-INST: smir %s11, %pmc5 115# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x15,0x0b,0x22] 116smir %s11, %pmc5 117 118# CHECK-INST: smir %s11, %pmc6 119# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x16,0x0b,0x22] 120smir %s11, 22 121 122# CHECK-INST: smir %s11, %pmc6 123# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x16,0x0b,0x22] 124smir %s11, %pmc6 125 126# CHECK-INST: smir %s11, %pmc7 127# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x17,0x0b,0x22] 128smir %s11, 23 129 130# CHECK-INST: smir %s11, %pmc7 131# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x17,0x0b,0x22] 132smir %s11, %pmc7 133 134# CHECK-INST: smir %s11, %pmc8 135# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x18,0x0b,0x22] 136smir %s11, 24 137 138# CHECK-INST: smir %s11, %pmc8 139# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x18,0x0b,0x22] 140smir %s11, %pmc8 141 142# CHECK-INST: smir %s11, %pmc9 143# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x19,0x0b,0x22] 144smir %s11, 25 145 146# CHECK-INST: smir %s11, %pmc9 147# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x19,0x0b,0x22] 148smir %s11, %pmc9 149 150# CHECK-INST: smir %s11, %pmc10 151# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1a,0x0b,0x22] 152smir %s11, 26 153 154# CHECK-INST: smir %s11, %pmc10 155# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1a,0x0b,0x22] 156smir %s11, %pmc10 157 158# CHECK-INST: smir %s11, %pmc11 159# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1b,0x0b,0x22] 160smir %s11, 27 161 162# CHECK-INST: smir %s11, %pmc11 163# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1b,0x0b,0x22] 164smir %s11, %pmc11 165 166# CHECK-INST: smir %s11, %pmc12 167# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1c,0x0b,0x22] 168smir %s11, 28 169 170# CHECK-INST: smir %s11, %pmc12 171# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1c,0x0b,0x22] 172smir %s11, %pmc12 173 174# CHECK-INST: smir %s11, %pmc13 175# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1d,0x0b,0x22] 176smir %s11, 29 177 178# CHECK-INST: smir %s11, %pmc13 179# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1d,0x0b,0x22] 180smir %s11, %pmc13 181 182# CHECK-INST: smir %s11, %pmc14 183# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1e,0x0b,0x22] 184smir %s11, 30 185 186# CHECK-INST: smir %s11, %pmc14 187# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1e,0x0b,0x22] 188smir %s11, %pmc14 189