1// RUN: not llvm-mc -triple aarch64-none-linux-gnu < %s 2>&1 | FileCheck %s 2 // Write-only 3 mrs x12, trcoslar 4 mrs x10, trclar 5// CHECK: error: expected readable system register 6// CHECK-NEXT: mrs x12, trcoslar 7// CHECK-NEXT: ^ 8// CHECK-NEXT: error: expected readable system register 9// CHECK-NEXT: mrs x10, trclar 10// CHECK-NEXT: ^ 11 12 // Read-only 13 msr trcstatr, x0 14 msr trcidr8, x13 15 msr trcidr9, x25 16 msr trcidr10, x2 17 msr trcidr11, x19 18 msr trcidr12, x15 19 msr trcidr13, x24 20 msr trcidr0, x20 21 msr trcidr1, x5 22 msr trcidr2, x18 23 msr trcidr3, x10 24 msr trcidr4, x1 25 msr trcidr5, x10 26 msr trcidr6, x4 27 msr trcidr7, x0 28 msr trcoslsr, x23 29 msr trcpdsr, x21 30 msr trcdevaff0, x4 31 msr trcdevaff1, x17 32 msr trclsr, x18 33 msr trcauthstatus, x10 34 msr trcdevarch, x8 35 msr trcdevid, x11 36 msr trcdevtype, x1 37 msr trcpidr4, x2 38 msr trcpidr5, x7 39 msr trcpidr6, x17 40 msr trcpidr7, x5 41 msr trcpidr0, x0 42 msr trcpidr1, x16 43 msr trcpidr2, x29 44 msr trcpidr3, x1 45 msr trccidr0, x27 46 msr trccidr1, x1 47 msr trccidr2, x24 48 msr trccidr3, x8 49// CHECK: error: expected writable system register or pstate 50// CHECK-NEXT: msr trcstatr, x0 51// CHECK-NEXT: ^ 52// CHECK-NEXT: error: expected writable system register or pstate 53// CHECK-NEXT: msr trcidr8, x13 54// CHECK-NEXT: ^ 55// CHECK-NEXT: error: expected writable system register or pstate 56// CHECK-NEXT: msr trcidr9, x25 57// CHECK-NEXT: ^ 58// CHECK-NEXT: error: expected writable system register or pstate 59// CHECK-NEXT: msr trcidr10, x2 60// CHECK-NEXT: ^ 61// CHECK-NEXT: error: expected writable system register or pstate 62// CHECK-NEXT: msr trcidr11, x19 63// CHECK-NEXT: ^ 64// CHECK-NEXT: error: expected writable system register or pstate 65// CHECK-NEXT: msr trcidr12, x15 66// CHECK-NEXT: ^ 67// CHECK-NEXT: error: expected writable system register or pstate 68// CHECK-NEXT: msr trcidr13, x24 69// CHECK-NEXT: ^ 70// CHECK-NEXT: error: expected writable system register or pstate 71// CHECK-NEXT: msr trcidr0, x20 72// CHECK-NEXT: ^ 73// CHECK-NEXT: error: expected writable system register or pstate 74// CHECK-NEXT: msr trcidr1, x5 75// CHECK-NEXT: ^ 76// CHECK-NEXT: error: expected writable system register or pstate 77// CHECK-NEXT: msr trcidr2, x18 78// CHECK-NEXT: ^ 79// CHECK-NEXT: error: expected writable system register or pstate 80// CHECK-NEXT: msr trcidr3, x10 81// CHECK-NEXT: ^ 82// CHECK-NEXT: error: expected writable system register or pstate 83// CHECK-NEXT: msr trcidr4, x1 84// CHECK-NEXT: ^ 85// CHECK-NEXT: error: expected writable system register or pstate 86// CHECK-NEXT: msr trcidr5, x10 87// CHECK-NEXT: ^ 88// CHECK-NEXT: error: expected writable system register or pstate 89// CHECK-NEXT: msr trcidr6, x4 90// CHECK-NEXT: ^ 91// CHECK-NEXT: error: expected writable system register or pstate 92// CHECK-NEXT: msr trcidr7, x0 93// CHECK-NEXT: ^ 94// CHECK-NEXT: error: expected writable system register or pstate 95// CHECK-NEXT: msr trcoslsr, x23 96// CHECK-NEXT: ^ 97// CHECK-NEXT: error: expected writable system register or pstate 98// CHECK-NEXT: msr trcpdsr, x21 99// CHECK-NEXT: ^ 100// CHECK-NEXT: error: expected writable system register or pstate 101// CHECK-NEXT: msr trcdevaff0, x4 102// CHECK-NEXT: ^ 103// CHECK-NEXT: error: expected writable system register or pstate 104// CHECK-NEXT: msr trcdevaff1, x17 105// CHECK-NEXT: ^ 106// CHECK-NEXT: error: expected writable system register or pstate 107// CHECK-NEXT: msr trclsr, x18 108// CHECK-NEXT: ^ 109// CHECK-NEXT: error: expected writable system register or pstate 110// CHECK-NEXT: msr trcauthstatus, x10 111// CHECK-NEXT: ^ 112// CHECK-NEXT: error: expected writable system register or pstate 113// CHECK-NEXT: msr trcdevarch, x8 114// CHECK-NEXT: ^ 115// CHECK-NEXT: error: expected writable system register or pstate 116// CHECK-NEXT: msr trcdevid, x11 117// CHECK-NEXT: ^ 118// CHECK-NEXT: error: expected writable system register or pstate 119// CHECK-NEXT: msr trcdevtype, x1 120// CHECK-NEXT: ^ 121// CHECK-NEXT: error: expected writable system register or pstate 122// CHECK-NEXT: msr trcpidr4, x2 123// CHECK-NEXT: ^ 124// CHECK-NEXT: error: expected writable system register or pstate 125// CHECK-NEXT: msr trcpidr5, x7 126// CHECK-NEXT: ^ 127// CHECK-NEXT: error: expected writable system register or pstate 128// CHECK-NEXT: msr trcpidr6, x17 129// CHECK-NEXT: ^ 130// CHECK-NEXT: error: expected writable system register or pstate 131// CHECK-NEXT: msr trcpidr7, x5 132// CHECK-NEXT: ^ 133// CHECK-NEXT: error: expected writable system register or pstate 134// CHECK-NEXT: msr trcpidr0, x0 135// CHECK-NEXT: ^ 136// CHECK-NEXT: error: expected writable system register or pstate 137// CHECK-NEXT: msr trcpidr1, x16 138// CHECK-NEXT: ^ 139// CHECK-NEXT: error: expected writable system register or pstate 140// CHECK-NEXT: msr trcpidr2, x29 141// CHECK-NEXT: ^ 142// CHECK-NEXT: error: expected writable system register or pstate 143// CHECK-NEXT: msr trcpidr3, x1 144// CHECK-NEXT: ^ 145// CHECK-NEXT: error: expected writable system register or pstate 146// CHECK-NEXT: msr trccidr0, x27 147// CHECK-NEXT: ^ 148// CHECK-NEXT: error: expected writable system register or pstate 149// CHECK-NEXT: msr trccidr1, x1 150// CHECK-NEXT: ^ 151// CHECK-NEXT: error: expected writable system register or pstate 152// CHECK-NEXT: msr trccidr2, x24 153// CHECK-NEXT: ^ 154// CHECK-NEXT: error: expected writable system register or pstate 155// CHECK-NEXT: msr trccidr3, x8 156// CHECK-NEXT: ^ 157