From 6a69252f95194efaa8e30fad7bab9aadbaed7eeb Mon Sep 17 00:00:00 2001 From: uros Date: Tue, 10 Nov 2015 19:26:08 +0000 Subject: [PATCH] * config/i386/i386.md (*movabs_1): Add explicit size directives for -masm=intel. (*movabs_2): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230119 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 9 +++++++++ gcc/config/i386/i386.md | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b5808c10115e..59ef30223a58 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-11-10 Uros Bizjak + + * config/i386/i386.md (*movabs_1): Add explicit + size directives for -masm=intel. + (*movabs_2): Ditto. + 2015-11-10 Uros Bizjak * config/i386/i386.c (ix86_print_operand): Remove dead code that @@ -9,6 +15,9 @@ argument. Do not use RIP relative addressing when no_rip is set. (ix86_print_operand): Update call to ix86_print_operand_address_as. (ix86_print_operand_address): Ditto. + * config/i386/i386.md (*movabs_1): Use %P modifier for + absolute movabs operand 0. Add square braces for -masm=intel. + (*movabs_2): Ditto for operand 1. 2015-11-10 Kyrylo Tkachov diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index a236199699a0..34a6d3f4d823 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -2601,7 +2601,7 @@ switch (which_alternative) { case 0: - return "movabs{}\t{%1, %P0|[%P0], %1}"; + return "movabs{}\t{%1, %P0| PTR [%P0], %1}"; case 1: return "mov{}\t{%1, %0|%0, %1}"; default: @@ -2625,7 +2625,7 @@ switch (which_alternative) { case 0: - return "movabs{}\t{%P1, %0|%0, [%P1]}"; + return "movabs{}\t{%P1, %0|%0, PTR [%P1]}"; case 1: return "mov{}\t{%1, %0|%0, %1}"; default: -- 2.47.2