aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-i386.c3
-rw-r--r--gas/testsuite/gas/cfi/cfi-i386.s1
3 files changed, 9 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index d244ab4..787c0fd 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,11 @@
2020-06-08 Jan Beulich <jbeulich@suse.com>
+ * config/tc-i386.c (parse_real_register): Add allow_pseudo_reg
+ check to %st(N) parsing logic.
+ * testsuite/gas/cfi/cfi-i386.s: Set "generic32" arch.
+
+2020-06-08 Jan Beulich <jbeulich@suse.com>
+
* config/tc-i386.c (bad_reg): New.
(check_VecOperations, i386_att_operand, i386_parse_name): Check
for it.
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index e34ff85..6b94798 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -12452,7 +12452,8 @@ parse_real_register (char *reg_string, char **end_op)
{
if (!cpu_arch_flags.bitfield.cpu8087
&& !cpu_arch_flags.bitfield.cpu287
- && !cpu_arch_flags.bitfield.cpu387)
+ && !cpu_arch_flags.bitfield.cpu387
+ && !allow_pseudo_reg)
return (const reg_entry *) NULL;
if (is_space_char (*s))
diff --git a/gas/testsuite/gas/cfi/cfi-i386.s b/gas/testsuite/gas/cfi/cfi-i386.s
index 09fd466..0816a0c 100644
--- a/gas/testsuite/gas/cfi/cfi-i386.s
+++ b/gas/testsuite/gas/cfi/cfi-i386.s
@@ -1,4 +1,5 @@
.text
+ .arch generic32
#; func_locvars
#; - function with a space on the stack