invoke.texi (-masm-syntax-unified): Reword and fix typo.

2014-11-11  Terry Guo  <terry.guo@arm.com>

	* doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
	* config/arm/thumb1.md (*thumb_mulsi3): Use movs to move low
	registers.
	(*thumb1_movhf): Likewise.

From-SVN: r217341
This commit is contained in:
Terry Guo 2014-11-11 09:18:35 +00:00 committed by Xuepeng Guo
parent e040d8a085
commit 04dc44ac21
3 changed files with 17 additions and 12 deletions

View File

@ -1,3 +1,10 @@
2014-11-11 Terry Guo <terry.guo@arm.com>
* doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
* config/arm/thumb1.md (*thumb_mulsi3): Use movs to move low
registers.
(*thumb1_movhf): Likewise.
2014-11-11 Uros Bizjak <ubizjak@gmail.com> 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
* sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t) * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)

View File

@ -131,12 +131,10 @@
(mult:SI (match_operand:SI 1 "register_operand" "%l,*h,0") (mult:SI (match_operand:SI 1 "register_operand" "%l,*h,0")
(match_operand:SI 2 "register_operand" "l,l,l")))] (match_operand:SI 2 "register_operand" "l,l,l")))]
"TARGET_THUMB1 && !arm_arch6" "TARGET_THUMB1 && !arm_arch6"
"* "@
if (which_alternative < 2) movs\\t%0, %1\;muls\\t%0, %2
return \"mov\\t%0, %1\;muls\\t%0, %2\"; mov\\t%0, %1\;muls\\t%0, %2
else muls\\t%0, %2"
return \"muls\\t%0, %2\";
"
[(set_attr "length" "4,4,2") [(set_attr "length" "4,4,2")
(set_attr "type" "muls")] (set_attr "type" "muls")]
) )
@ -787,6 +785,8 @@
"* "*
switch (which_alternative) switch (which_alternative)
{ {
case 0:
return \"movs\\t%0, %1\";
case 1: case 1:
{ {
rtx addr; rtx addr;

View File

@ -13040,13 +13040,11 @@ off by default.
@item -masm-syntax-unified @item -masm-syntax-unified
@opindex masm-syntax-unified @opindex masm-syntax-unified
Assume the Thumb1 inline assembly code are using unified syntax. Assume inline assembler is using unified asm syntax. The default is
The default is currently off, which means divided syntax is assumed. currently off which implies divided syntax. Currently this option is
available only for Thumb1 and has no effect on ARM state and Thumb2.
However, this may change in future releases of GCC. Divided syntax However, this may change in future releases of GCC. Divided syntax
should be considered deprecated. This option has no effect when should be considered deprecated.
generating Thumb2 code. Thumb2 assembly code always uses unified syntax.
This option has no effect for ARM state assembly code which will still
uses divided syntax.
@item -mrestrict-it @item -mrestrict-it
@opindex mrestrict-it @opindex mrestrict-it