[NFC] Include PassID for runBeforePass children.
[llvm-project.git] / llvm / test / MC / AArch64 / armv9.4a-gcs.s
blobb4af9b5dcb10c2ea6b9a96334f25c00a8d8dab6e
1 // RUN: llvm-mc -triple aarch64 -mattr +gcs -show-encoding %s | FileCheck %s
2 // RUN: not llvm-mc -triple aarch64 -show-encoding %s 2>%t | FileCheck %s --check-prefix=NO-GCS
3 // RUN: FileCheck --check-prefix=ERROR-NO-GCS %s < %t
5 msr GCSCR_EL1, x0
6 mrs x1, GCSCR_EL1
7 // CHECK: msr GCSCR_EL1, x0 // encoding: [0x00,0x25,0x18,0xd5]
8 // CHECK: mrs x1, GCSCR_EL1 // encoding: [0x01,0x25,0x38,0xd5]
10 msr GCSPR_EL1, x2
11 mrs x3, GCSPR_EL1
12 // CHECK: msr GCSPR_EL1, x2 // encoding: [0x22,0x25,0x18,0xd5]
13 // CHECK: mrs x3, GCSPR_EL1 // encoding: [0x23,0x25,0x38,0xd5]
15 msr GCSCRE0_EL1, x4
16 mrs x5, GCSCRE0_EL1
17 // CHECK: msr GCSCRE0_EL1, x4 // encoding: [0x44,0x25,0x18,0xd5]
18 // CHECK: mrs x5, GCSCRE0_EL1 // encoding: [0x45,0x25,0x38,0xd5]
20 msr GCSPR_EL0, x6
21 mrs x7, GCSPR_EL0
22 // CHECK: msr GCSPR_EL0, x6 // encoding: [0x26,0x25,0x1b,0xd5]
23 // CHECK: mrs x7, GCSPR_EL0 // encoding: [0x27,0x25,0x3b,0xd5]
25 msr GCSCR_EL2, x10
26 mrs x11, GCSCR_EL2
27 // CHECK: msr GCSCR_EL2, x10 // encoding: [0x0a,0x25,0x1c,0xd5]
28 // CHECK: mrs x11, GCSCR_EL2 // encoding: [0x0b,0x25,0x3c,0xd5]
30 msr GCSPR_EL2, x12
31 mrs x13, GCSPR_EL2
32 // CHECK: msr GCSPR_EL2, x12 // encoding: [0x2c,0x25,0x1c,0xd5]
33 // CHECK: mrs x13, GCSPR_EL2 // encoding: [0x2d,0x25,0x3c,0xd5]
35 msr GCSCR_EL12, x14
36 mrs x15, GCSCR_EL12
37 // CHECK: msr GCSCR_EL12, x14 // encoding: [0x0e,0x25,0x1d,0xd5]
38 // CHECK: mrs x15, GCSCR_EL12 // encoding: [0x0f,0x25,0x3d,0xd5]
40 msr GCSPR_EL12, x16
41 mrs x17, GCSPR_EL12
42 // CHECK: msr GCSPR_EL12, x16 // encoding: [0x30,0x25,0x1d,0xd5]
43 // CHECK: mrs x17, GCSPR_EL12 // encoding: [0x31,0x25,0x3d,0xd5]
45 msr GCSCR_EL3, x18
46 mrs x19, GCSCR_EL3
47 // CHECK: msr GCSCR_EL3, x18 // encoding: [0x12,0x25,0x1e,0xd5]
48 // CHECK: mrs x19, GCSCR_EL3 // encoding: [0x13,0x25,0x3e,0xd5]
50 msr GCSPR_EL3, x20
51 mrs x21, GCSPR_EL3
52 // CHECK: msr GCSPR_EL3, x20 // encoding: [0x34,0x25,0x1e,0xd5]
53 // CHECK: mrs x21, GCSPR_EL3 // encoding: [0x35,0x25,0x3e,0xd5]
55 gcsss1 x21
56 // CHECK: gcsss1 x21 // encoding: [0x55,0x77,0x0b,0xd5]
57 // ERROR-NO-GCS: [[@LINE-2]]:1: error: instruction requires: gcs
59 gcsss2 x22
60 // CHECK: gcsss2 x22 // encoding: [0x76,0x77,0x2b,0xd5]
61 // ERROR-NO-GCS: [[@LINE-2]]:1: error: instruction requires: gcs
63 gcspushm x25
64 // CHECK: gcspushm x25 // encoding: [0x19,0x77,0x0b,0xd5]
65 // ERROR-NO-GCS: [[@LINE-2]]:1: error: instruction requires: gcs
67 gcspopm
68 // CHECK: gcspopm // encoding: [0x3f,0x77,0x2b,0xd5]
69 // ERROR-NO-GCS: [[@LINE-2]]:1: error: instruction requires: gcs
71 gcspopm xzr
72 // CHECK: gcspopm // encoding: [0x3f,0x77,0x2b,0xd5]
73 // ERROR-NO-GCS: [[@LINE-2]]:1: error: instruction requires: gcs
75 gcspopm x25
76 // CHECK: gcspopm x25 // encoding: [0x39,0x77,0x2b,0xd5]
77 // ERROR-NO-GCS: [[@LINE-2]]:1: error: instruction requires: gcs
79 gcsb dsync
80 // CHECK: gcsb dsync // encoding: [0x7f,0x22,0x03,0xd5]
81 // ERROR-NO-GCS-NOT: [[@LINE-2]]:1: error: instruction requires: gcs
82 // NO-GCS: hint #19 // encoding: [0x7f,0x22,0x03,0xd5]
84 hint #19
85 // CHECK: gcsb dsync // encoding: [0x7f,0x22,0x03,0xd5]
86 // ERROR-NO-GCS-NOT: [[@LINE-2]]:1: error: instruction requires: gcs
87 // NO-GCS: hint #19 // encoding: [0x7f,0x22,0x03,0xd5]
89 gcsstr x26, [x27]
90 // CHECK: gcsstr x26, [x27] // encoding: [0x7a,0x0f,0x1f,0xd9]
91 // ERROR-NO-GCS: [[@LINE-2]]:1: error: instruction requires: gcs
93 gcsstr x26, [sp]
94 // CHECK: gcsstr x26, [sp] // encoding: [0xfa,0x0f,0x1f,0xd9]
95 // ERROR-NO-GCS: [[@LINE-2]]:1: error: instruction requires: gcs
97 gcssttr x26, [x27]
98 // CHECK: gcssttr x26, [x27] // encoding: [0x7a,0x1f,0x1f,0xd9]
99 // ERROR-NO-GCS: [[@LINE-2]]:1: error: instruction requires: gcs
101 gcssttr x26, [sp]
102 // CHECK: gcssttr x26, [sp] // encoding: [0xfa,0x1f,0x1f,0xd9]
103 // ERROR-NO-GCS: [[@LINE-2]]:1: error: instruction requires: gcs
105 gcspushx
106 // CHECK: gcspushx // encoding: [0x9f,0x77,0x08,0xd5]
107 // ERROR-NO-GCS: [[@LINE-2]]:1: error: instruction requires: gcs
109 gcspopcx
110 // CHECK: gcspopcx // encoding: [0xbf,0x77,0x08,0xd5]
111 // ERROR-NO-GCS: [[@LINE-2]]:1: error: instruction requires: gcs
113 gcspopx
114 // CHECK: gcspopx // encoding: [0xdf,0x77,0x08,0xd5]
115 // ERROR-NO-GCS: [[@LINE-2]]:1: error: instruction requires: gcs