This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, i386]: Some trivial const_wide_int/const_double related cleanups


Hello!

2015-05-04  Uros Bizjak  <ubizjak@gmail.com>

    * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
    to CONST_DOUBLE_P predicate.
    (standard_sse_constant_p): Return 0 for !TARGET_SSE.
    (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
    allow only operands that satisfy standard_sse_constant_p predicate.
    * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
    to CONST_DOUBLE_P predicate.

Tested on x86_64-linux-gnu {,-m32} and committed to mainline SVN.

Uros.

Attachment: p.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]