* [PATCH, i386]: Use satisfies_constraint_L in ix86_binary_operator_ok
@ 2011-08-20 16:40 Uros Bizjak
0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2011-08-20 16:40 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 217 bytes --]
Hello!
No functional change.
2011-08-20 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (ix86_binary_operator_ok): Use
satisfies_constraint_L.
Tested on x86_64-pc-linux-gnu, committed to mainline.
Uros.
[-- Attachment #2: p.diff.txt --]
[-- Type: text/plain, Size: 855 bytes --]
Index: i386.c
===================================================================
--- i386.c (revision 177927)
+++ i386.c (working copy)
@@ -15787,16 +15787,12 @@ ix86_binary_operator_ok (enum rtx_code code, enum
/* Source 1 cannot be a non-matching memory. */
if (MEM_P (src1) && !rtx_equal_p (dst, src1))
- {
- /* Support "andhi/andsi/anddi" as a zero-extending move. */
- return (code == AND
- && (mode == HImode
- || mode == SImode
- || (TARGET_64BIT && mode == DImode))
- && CONST_INT_P (src2)
- && (INTVAL (src2) == 0xff
- || INTVAL (src2) == 0xffff));
- }
+ /* Support "andhi/andsi/anddi" as a zero-extending move. */
+ return (code == AND
+ && (mode == HImode
+ || mode == SImode
+ || (TARGET_64BIT && mode == DImode))
+ && satisfies_constraint_L (src2));
return true;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-20 11:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-20 16:40 [PATCH, i386]: Use satisfies_constraint_L in ix86_binary_operator_ok Uros Bizjak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).