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