aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2018-03-28 14:22:56 +0200
committerJan Beulich <jbeulich@suse.com>2018-03-28 14:22:56 +0200
commit9f123b911ec8c460304c3e1a3f18f1c2a311d97a (patch)
tree2e356c29b5f4fc9046c91c33c0e42864e970afcb /gas
parent9646c87b5a6c0462e8a9b6305d9e449bd099f19d (diff)
downloadgdb-9f123b911ec8c460304c3e1a3f18f1c2a311d97a.zip
gdb-9f123b911ec8c460304c3e1a3f18f1c2a311d97a.tar.gz
gdb-9f123b911ec8c460304c3e1a3f18f1c2a311d97a.tar.bz2
x86: fold to-scalar-int conversion insns
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-i386.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index d1d49f8..592c4d9 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
2018-03-28 Jan Beulich <jbeulich@suse.com>
+ * config/tc-i386.c (process_suffix): Check .todword/.toqword
+ before zapping suffix.
+
+2018-03-28 Jan Beulich <jbeulich@suse.com>
+
* testsuite/gas/i386/ilp32/x86-64-simd-suffix.d,
testsuite/gas/i386/x86-64-simd-suffix.d: Drop q suffix from
cvt*2si.
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 2163ac1..f201d1a 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -5806,7 +5806,9 @@ process_suffix (void)
{
if (intel_syntax
&& i.tm.opcode_modifier.ignoresize
- && i.tm.opcode_modifier.no_lsuf)
+ && i.tm.opcode_modifier.no_lsuf
+ && !i.tm.opcode_modifier.todword
+ && !i.tm.opcode_modifier.toqword)
i.suffix = 0;
else if (!check_long_reg ())
return 0;
@@ -5815,7 +5817,9 @@ process_suffix (void)
{
if (intel_syntax
&& i.tm.opcode_modifier.ignoresize
- && i.tm.opcode_modifier.no_qsuf)
+ && i.tm.opcode_modifier.no_qsuf
+ && !i.tm.opcode_modifier.todword
+ && !i.tm.opcode_modifier.toqword)
i.suffix = 0;
else if (!check_qword_reg ())
return 0;