From 9f123b911ec8c460304c3e1a3f18f1c2a311d97a Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Wed, 28 Mar 2018 14:22:56 +0200 Subject: x86: fold to-scalar-int conversion insns --- gas/ChangeLog | 5 +++++ gas/config/tc-i386.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'gas') 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 + * config/tc-i386.c (process_suffix): Check .todword/.toqword + before zapping suffix. + +2018-03-28 Jan Beulich + * 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; -- cgit v1.1