aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2008-04-07 13:07:16 +0000
committerH.J. Lu <hjl.tools@gmail.com>2008-04-07 13:07:16 +0000
commit40f12533831101e95be7921d126e66f038222b17 (patch)
treed6f5db08f6daa1c90efa1835d4a4caf6c232995f /gas/config
parenteffa26a936e3b81667b6a0fa18354a718734d5f1 (diff)
downloadgdb-40f12533831101e95be7921d126e66f038222b17.zip
gdb-40f12533831101e95be7921d126e66f038222b17.tar.gz
gdb-40f12533831101e95be7921d126e66f038222b17.tar.bz2
gas/
2008-04-07 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (parse_real_register): Return AVX register only if AVX is enabled. gas/testsuite/ 2008-04-07 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/att-regs.s: Add AVX register test. * gas/i386/intel-regs.s: Likewise. * gas/i386/att-regs.d: Updated. * gas/i386/intel-regs.d: Likewise.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-i386.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 4426697..f6b3909 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -7685,6 +7685,9 @@ parse_real_register (char *reg_string, char **end_op)
if (r->reg_type.bitfield.regxmm && !cpu_arch_flags.bitfield.cpusse)
return (const reg_entry *) NULL;
+ if (r->reg_type.bitfield.regymm && !cpu_arch_flags.bitfield.cpuavx)
+ return (const reg_entry *) NULL;
+
/* Don't allow fake index register unless allow_index_reg isn't 0. */
if (!allow_index_reg
&& (r->reg_num == RegEiz || r->reg_num == RegRiz))