This is the mail archive of the gcc-bugs@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]

[Bug target/58139] PowerPC volatile VSX register live across call


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58139

--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
You can try this:

diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index a8d70bc..ab4dc6c 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -34466,7 +34466,7 @@ ix86_hard_regno_mode_ok (int regno, enum machine_mode
mode)

       /* OImode move is available only when AVX is enabled.  */
       return ((TARGET_AVX && mode == OImode)
-          || VALID_AVX256_REG_MODE (mode)
+          || (TARGET_AVX && VALID_AVX256_REG_MODE (mode))
           || VALID_SSE_REG_MODE (mode)
           || VALID_SSE2_REG_MODE (mode)
           || VALID_MMX_REG_MODE (mode)


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