Commit 35f43fd1 by Graham Stott Committed by Jeff Law

i386.c (memory_address_info): Correct the scale factor test.

        * i386.c (memory_address_info): Correct the scale
        factor test.

From-SVN: r26917
parent 269bcf84
Thu May 13 01:49:55 1999 Graham Stott <GrahamS@RCP.co.uk>
* i386.c (memory_address_info): Correct the scale
factor test.
Thu May 13 01:31:19 1999 Nick Burrett <nick.burrett@btinternet.com>
* arm.md (nop): Backout Apr 27 change. Ensure REGISTER_PREFIX is
......
......@@ -5638,7 +5638,8 @@ memory_address_info (addr, disp_length)
/* Scaling can not be encoded without base or displacement.
Except for scale == 1 where we can encode reg + reg instead of reg * 2. */
if (!base && index && scale != 1)
if (!base && index
&& (!scale || GET_CODE (scale) != CONST_INT || (INTVAL (scale) != 1)))
disp = const0_rtx;
/* Find the length of the displacement constant. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment