|
11 | 11 | // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \ |
12 | 12 | // RUN: | llvm-mc -triple=aarch64 -mattr=+gcs -disassemble -show-encoding \ |
13 | 13 | // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST |
14 | | -// RUN: not llvm-mc -triple aarch64 -show-encoding %s 2>%t | FileCheck %s --check-prefix=NO-GCS |
15 | 14 |
|
16 | 15 |
|
17 | 16 | msr GCSCR_EL1, x0 |
@@ -150,18 +149,6 @@ gcspopm x25 |
150 | 149 | // CHECK-ERROR: error: instruction requires: gcs |
151 | 150 | // CHECK-UNKNOWN: d52b7739 sysl x25, #3, c7, c7, #1 |
152 | 151 |
|
153 | | -gcsb dsync |
154 | | -// CHECK-INST: gcsb dsync |
155 | | -// CHECK-ENCODING: encoding: [0x7f,0x22,0x03,0xd5] |
156 | | -// CHECK-UNKNOWN: d503227f hint #19 |
157 | | -// NO-GCS: hint #19 // encoding: [0x7f,0x22,0x03,0xd5] |
158 | | - |
159 | | -hint #19 |
160 | | -// CHECK-INST: gcsb dsync |
161 | | -// CHECK-ENCODING: encoding: [0x7f,0x22,0x03,0xd5] |
162 | | -// CHECK-UNKNOWN: d503227f hint #19 |
163 | | -// NO-GCS: hint #19 // encoding: [0x7f,0x22,0x03,0xd5] |
164 | | - |
165 | 152 | gcsstr x26, [x27] |
166 | 153 | // CHECK-INST: gcsstr x26, [x27] |
167 | 154 | // CHECK-ENCODING: encoding: [0x7a,0x0f,0x1f,0xd9] |
@@ -203,3 +190,15 @@ gcspopx |
203 | 190 | // CHECK-ENCODING: encoding: [0xdf,0x77,0x08,0xd5] |
204 | 191 | // CHECK-ERROR: error: instruction requires: gcs |
205 | 192 | // CHECK-UNKNOWN: d50877df sys #0, c7, c7, #6 |
| 193 | + |
| 194 | +gcsb dsync |
| 195 | +// CHECK-INST: gcsb dsync |
| 196 | +// CHECK-ENCODING: encoding: [0x7f,0x22,0x03,0xd5] |
| 197 | +// CHECK-UNKNOWN: d503227f hint #19 |
| 198 | +// CHECK-ERROR: hint #19 // encoding: [0x7f,0x22,0x03,0xd5] |
| 199 | + |
| 200 | +hint #19 |
| 201 | +// CHECK-INST: gcsb dsync |
| 202 | +// CHECK-ENCODING: encoding: [0x7f,0x22,0x03,0xd5] |
| 203 | +// CHECK-UNKNOWN: d503227f hint #19 |
| 204 | +// CHECK-ERROR: hint #19 // encoding: [0x7f,0x22,0x03,0xd5] |
0 commit comments