|
|
b8cdd5 |
Only in binutils-2.35.2/gas/testsuite/gas/aarch64: rng-1.d
|
|
|
b8cdd5 |
Only in binutils-2.35.2/gas/testsuite/gas/aarch64: rng-1.s
|
|
|
b8cdd5 |
diff -rup binutils.orig/opcodes/aarch64-opc.c binutils-2.35.2/opcodes/aarch64-opc.c
|
|
|
b8cdd5 |
--- binutils.orig/opcodes/aarch64-opc.c 2022-04-05 11:50:10.131798329 +0100
|
|
|
b8cdd5 |
+++ binutils-2.35.2/opcodes/aarch64-opc.c 2022-04-05 11:54:32.596827591 +0100
|
|
|
b8cdd5 |
@@ -3810,9 +3810,6 @@ aarch64_print_operand (char *buf, size_t
|
|
|
b8cdd5 |
#define SR_FEAT(n,e,f,feat) \
|
|
|
b8cdd5 |
SYSREG ((n), (e), (f) | F_ARCHEXT, AARCH64_FEATURE_##feat)
|
|
|
b8cdd5 |
|
|
|
b8cdd5 |
-#define SR_RNG(n,e,f) \
|
|
|
b8cdd5 |
- SYSREG ((n), (e), (f) | F_ARCHEXT, AARCH64_FEATURE_RNG | AARCH64_FEATURE_V8_5)
|
|
|
b8cdd5 |
-
|
|
|
b8cdd5 |
#define SR_V8_1(n,e,f) SR_FEAT (n,e,f,V8_1)
|
|
|
b8cdd5 |
#define SR_V8_2(n,e,f) SR_FEAT (n,e,f,V8_2)
|
|
|
b8cdd5 |
#define SR_V8_3(n,e,f) SR_FEAT (n,e,f,V8_3)
|
|
|
b8cdd5 |
@@ -3820,6 +3817,7 @@ aarch64_print_operand (char *buf, size_t
|
|
|
b8cdd5 |
#define SR_V8_4(n,e,f) SR_FEAT (n,e,f,V8_4)
|
|
|
b8cdd5 |
#define SR_PAN(n,e,f) SR_FEAT (n,e,f,PAN)
|
|
|
b8cdd5 |
#define SR_RAS(n,e,f) SR_FEAT (n,e,f,RAS)
|
|
|
b8cdd5 |
+#define SR_RNG(n,e,f) SR_FEAT (n,e,f,RNG)
|
|
|
b8cdd5 |
#define SR_SSBS(n,e,f) SR_FEAT (n,e,f,SSBS)
|
|
|
b8cdd5 |
#define SR_SVE(n,e,f) SR_FEAT (n,e,f,SVE)
|
|
|
b8cdd5 |
#define SR_ID_PFR2(n,e,f) SR_FEAT (n,e,f,ID_PFR2)
|
|
|
b8cdd5 |
--- /dev/null 2022-04-05 09:32:54.900867346 +0100
|
|
|
b8cdd5 |
+++ binutils-2.35.2/gas/testsuite/gas/aarch64/rng-1.s 2022-04-05 11:55:13.973674567 +0100
|
|
|
b8cdd5 |
@@ -0,0 +1,3 @@
|
|
|
b8cdd5 |
+ .arch armv8.4-a+rng
|
|
|
b8cdd5 |
+ mrs x5, rndr
|
|
|
b8cdd5 |
+ mrs x6, rndrrs
|
|
|
b8cdd5 |
--- /dev/null 2022-04-05 09:32:54.900867346 +0100
|
|
|
b8cdd5 |
+++ binutils-2.35.2/gas/testsuite/gas/aarch64/rng-1.d 2022-04-05 11:55:45.338558554 +0100
|
|
|
b8cdd5 |
@@ -0,0 +1,10 @@
|
|
|
b8cdd5 |
+#source: rng-1.s
|
|
|
b8cdd5 |
+#objdump: -dr
|
|
|
b8cdd5 |
+
|
|
|
b8cdd5 |
+.*: file format .*
|
|
|
b8cdd5 |
+
|
|
|
b8cdd5 |
+Disassembly of section \.text:
|
|
|
b8cdd5 |
+
|
|
|
b8cdd5 |
+0+ <.*>:
|
|
|
b8cdd5 |
+.*: d53b2405 mrs x5, rndr
|
|
|
b8cdd5 |
+.*: d53b2426 mrs x6, rndrrs
|
|
|
b8cdd5 |
--- binutils.orig/gas/config/tc-aarch64.c 2022-05-23 09:44:07.623234684 +0100
|
|
|
b8cdd5 |
+++ binutils-2.35.2/gas/config/tc-aarch64.c 2022-05-23 09:47:09.147696001 +0100
|
|
|
b8cdd5 |
@@ -9206,7 +9206,7 @@ aarch64_parse_features (const char *str,
|
|
|
b8cdd5 |
break;
|
|
|
b8cdd5 |
}
|
|
|
b8cdd5 |
|
|
|
b8cdd5 |
- if (opt->name == NULL)
|
|
|
b8cdd5 |
+ if (opt->name == NULL && adding_value)
|
|
|
b8cdd5 |
{
|
|
|
b8cdd5 |
as_bad (_("unknown architectural extension `%s'"), str);
|
|
|
b8cdd5 |
return 0;
|