Commit 7174c937 by J"orn Rennecke Committed by Joern Rennecke

* (gen_shl_and, in case 1): Fix comparison with mask.

From-SVN: r19400
parent 2fe8c4d9
Fri Apr 24 16:45:03 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
* (gen_shl_and, in case 1): Fix comparison with mask.
Fri Apr 24 06:46:40 1998 Nick Clifton <nickc@cygnus.com>
* config/arm/thumb.h (GO_IF_LEGITIMATE_ADDRESS): Disallow frame
......
......@@ -1292,7 +1292,7 @@ gen_shl_and (dest, left_rtx, mask_rtx, source)
if (first < 0)
{
emit_insn ((mask << right) == 0xff
emit_insn ((mask << right) <= 0xff
? gen_zero_extendqisi2(dest,
gen_lowpart (QImode, source))
: gen_zero_extendhisi2(dest,
......@@ -1315,7 +1315,7 @@ gen_shl_and (dest, left_rtx, mask_rtx, source)
mask <<= first;
}
if (first >= 0)
emit_insn (mask == 0xff
emit_insn (mask <= 0xff
? gen_zero_extendqisi2(dest, gen_lowpart (QImode, dest))
: gen_zero_extendhisi2(dest, gen_lowpart (HImode, dest)));
if (total_shift > 0)
......
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