diff mbox series

[committed] hppa: Don't allow mode size 32 in hard registers

Message ID Zy6K9D3jc3LSLcni@mx3210.local
State New
Headers show
Series [committed] hppa: Don't allow mode size 32 in hard registers | expand

Commit Message

John David Anglin Nov. 8, 2024, 10:04 p.m. UTC
Tested on hppa64-hp-hpux11.11.  Committed to trunk.

Dave
---

hppa: Don't allow mode size 32 in hard registers

2024-11-08  John David Anglin  <danglin@gcc.gnu.org>

gcc/ChangeLog:

	PR target/117238
	* config/pa/pa64-regs.h (PA_HARD_REGNO_MODE_OK): Don't allow
	mode size 32.
diff mbox series

Patch

diff --git a/gcc/config/pa/pa64-regs.h b/gcc/config/pa/pa64-regs.h
index 3b9273c2867..90762e119dc 100644
--- a/gcc/config/pa/pa64-regs.h
+++ b/gcc/config/pa/pa64-regs.h
@@ -157,13 +157,10 @@  along with GCC; see the file COPYING3.  If not see
    : FP_REGNO_P (REGNO)							\
      ? (VALID_FP_MODE_P (MODE)						\
 	&& (GET_MODE_SIZE (MODE) <= 8					\
-	    || (GET_MODE_SIZE (MODE) == 16 && ((REGNO) & 1) == 0)	\
-	    || (GET_MODE_SIZE (MODE) == 32 && ((REGNO) & 3) == 0)))	\
+	    || (GET_MODE_SIZE (MODE) == 16 && ((REGNO) & 1) == 0)))	\
    : (GET_MODE_SIZE (MODE) <= UNITS_PER_WORD				\
       || (GET_MODE_SIZE (MODE) == 2 * UNITS_PER_WORD			\
-	  && ((((REGNO) & 1) == 1 && (REGNO) <= 25) || (REGNO) == 28))	\
-      || (GET_MODE_SIZE (MODE) == 4 * UNITS_PER_WORD			\
-	  && ((REGNO) & 3) == 3 && (REGNO) <= 23)))
+	  && ((((REGNO) & 1) == 1 && (REGNO) <= 25) || (REGNO) == 28))))
 
 /* How to renumber registers for gdb.