Home | History | Annotate | Download | only in AArch64
      1 // RUN: not llvm-mc -triple aarch64-none-linux-gnu < %s 2>&1 | FileCheck %s
      2 
      3         // Write-only
      4         mrs x10, icc_eoir1_el1
      5         mrs x7, icc_eoir0_el1
      6         mrs x22, icc_dir_el1
      7         mrs x24, icc_sgi1r_el1
      8         mrs x8, icc_asgi1r_el1
      9         mrs x28, icc_sgi0r_el1
     10 // CHECK: error: expected readable system register
     11 // CHECK-NEXT:         mrs x10, icc_eoir1_el1
     12 // CHECK-NEXT:                  ^
     13 // CHECK-NEXT: error: expected readable system register
     14 // CHECK-NEXT:         mrs x7, icc_eoir0_el1
     15 // CHECK-NEXT:                 ^
     16 // CHECK-NEXT: error: expected readable system register
     17 // CHECK-NEXT:         mrs x22, icc_dir_el1
     18 // CHECK-NEXT:                  ^
     19 // CHECK-NEXT: error: expected readable system register
     20 // CHECK-NEXT:         mrs x24, icc_sgi1r_el1
     21 // CHECK-NEXT:                  ^
     22 // CHECK-NEXT: error: expected readable system register
     23 // CHECK-NEXT:         mrs x8, icc_asgi1r_el1
     24 // CHECK-NEXT:                 ^
     25 // CHECK-NEXT: error: expected readable system register
     26 // CHECK-NEXT:         mrs x28, icc_sgi0r_el1
     27 // CHECK-NEXT:                  ^
     28 
     29         // Read-only
     30         msr icc_iar1_el1, x16
     31         msr icc_iar0_el1, x19
     32         msr icc_hppir1_el1, x29
     33         msr icc_hppir0_el1, x14
     34         msr icc_rpr_el1, x6
     35         msr ich_vtr_el2, x8
     36         msr ich_eisr_el2, x22
     37         msr ich_elsr_el2, x8
     38 // CHECK: error: expected writable system register or pstate
     39 // CHECK-NEXT:         msr icc_iar1_el1, x16
     40 // CHECK-NEXT:             ^
     41 // CHECK-NEXT: error: expected writable system register or pstate
     42 // CHECK-NEXT:         msr icc_iar0_el1, x19
     43 // CHECK-NEXT:             ^
     44 // CHECK-NEXT: error: expected writable system register or pstate
     45 // CHECK-NEXT:         msr icc_hppir1_el1, x29
     46 // CHECK-NEXT:             ^
     47 // CHECK-NEXT: error: expected writable system register or pstate
     48 // CHECK-NEXT:         msr icc_hppir0_el1, x14
     49 // CHECK-NEXT:             ^
     50 // CHECK-NEXT: error: expected writable system register or pstate
     51 // CHECK-NEXT:         msr icc_rpr_el1, x6
     52 // CHECK-NEXT:             ^
     53 // CHECK-NEXT: error: expected writable system register or pstate
     54 // CHECK-NEXT:         msr ich_vtr_el2, x8
     55 // CHECK-NEXT:             ^
     56 // CHECK-NEXT: error: expected writable system register or pstate
     57 // CHECK-NEXT:         msr ich_eisr_el2, x22
     58 // CHECK-NEXT:             ^
     59 // CHECK-NEXT: error: expected writable system register or pstate
     60 // CHECK-NEXT:         msr ich_elsr_el2, x8
     61 // CHECK-NEXT:             ^
     62