File: gicv3-regs-diagnostics.s

package info (click to toggle)
llvm-toolchain-11 1%3A11.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 995,808 kB
  • sloc: cpp: 4,767,656; ansic: 760,916; asm: 477,436; python: 170,940; objc: 69,804; lisp: 29,914; sh: 23,855; f90: 18,173; pascal: 7,551; perl: 7,471; ml: 5,603; awk: 3,489; makefile: 2,573; xml: 915; cs: 573; fortran: 503; javascript: 452
file content (65 lines) | stat: -rw-r--r-- 2,633 bytes parent folder | download | duplicates (23)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// RUN: not llvm-mc -triple aarch64-none-linux-gnu < %s 2>&1 | FileCheck %s

        // Write-only
        mrs x10, icc_eoir1_el1
        mrs x7, icc_eoir0_el1
        mrs x22, icc_dir_el1
        mrs x24, icc_sgi1r_el1
        mrs x8, icc_asgi1r_el1
        mrs x28, icc_sgi0r_el1
// CHECK: error: expected readable system register
// CHECK-NEXT:         mrs x10, icc_eoir1_el1
// CHECK-NEXT:                  ^
// CHECK-NEXT: error: expected readable system register
// CHECK-NEXT:         mrs x7, icc_eoir0_el1
// CHECK-NEXT:                 ^
// CHECK-NEXT: error: expected readable system register
// CHECK-NEXT:         mrs x22, icc_dir_el1
// CHECK-NEXT:                  ^
// CHECK-NEXT: error: expected readable system register
// CHECK-NEXT:         mrs x24, icc_sgi1r_el1
// CHECK-NEXT:                  ^
// CHECK-NEXT: error: expected readable system register
// CHECK-NEXT:         mrs x8, icc_asgi1r_el1
// CHECK-NEXT:                 ^
// CHECK-NEXT: error: expected readable system register
// CHECK-NEXT:         mrs x28, icc_sgi0r_el1
// CHECK-NEXT:                  ^

        // Read-only
        msr icc_iar1_el1, x16
        msr icc_iar0_el1, x19
        msr icc_hppir1_el1, x29
        msr icc_hppir0_el1, x14
        msr icc_rpr_el1, x6
        msr ich_vtr_el2, x8
        msr ich_eisr_el2, x22
        msr ich_elsr_el2, x8
        msr ich_misr_el2, x10
// CHECK: error: expected writable system register or pstate
// CHECK-NEXT:         msr icc_iar1_el1, x16
// CHECK-NEXT:             ^
// CHECK-NEXT: error: expected writable system register or pstate
// CHECK-NEXT:         msr icc_iar0_el1, x19
// CHECK-NEXT:             ^
// CHECK-NEXT: error: expected writable system register or pstate
// CHECK-NEXT:         msr icc_hppir1_el1, x29
// CHECK-NEXT:             ^
// CHECK-NEXT: error: expected writable system register or pstate
// CHECK-NEXT:         msr icc_hppir0_el1, x14
// CHECK-NEXT:             ^
// CHECK-NEXT: error: expected writable system register or pstate
// CHECK-NEXT:         msr icc_rpr_el1, x6
// CHECK-NEXT:             ^
// CHECK-NEXT: error: expected writable system register or pstate
// CHECK-NEXT:         msr ich_vtr_el2, x8
// CHECK-NEXT:             ^
// CHECK-NEXT: error: expected writable system register or pstate
// CHECK-NEXT:         msr ich_eisr_el2, x22
// CHECK-NEXT:             ^
// CHECK-NEXT: error: expected writable system register or pstate
// CHECK-NEXT:         msr ich_elsr_el2, x8
// CHECK-NEXT:             ^
// CHECK-NEXT: error: expected writable system register or pstate
// CHECK-NEXT:         msr ich_misr_el2, x10
// CHECK-NEXT:             ^