diff mbox series

[5/5] rs6000: BU_FUTURE_MISC_2 requires powerpc64

Message ID 8e76f80a6335d219c1c11f7ea6681a78034d1f75.1589570909.git.segher@kernel.crashing.org
State New
Headers show
Series rs6000: Fixes for Future, mostly testsuite | expand

Commit Message

Segher Boessenkool May 15, 2020, 7:35 p.m. UTC
BU_FUTURE_MISC_2 is (currently) only used for instructions that require
64-bit registers.

2020-05-15  Segher Boessenkool  <segher@kernel.crashing.org>

	* config/rs6000/rs6000-builtin.def (BU_FUTURE_MISC_2): Also require
	RS6000_BTM_POWERPC64.
---
 gcc/config/rs6000/rs6000-builtin.def | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/config/rs6000/rs6000-builtin.def b/gcc/config/rs6000/rs6000-builtin.def
index e58edec..8b1ddb0 100644
--- a/gcc/config/rs6000/rs6000-builtin.def
+++ b/gcc/config/rs6000/rs6000-builtin.def
@@ -1036,7 +1036,8 @@ 
 #define BU_FUTURE_MISC_2(ENUM, NAME, ATTR, ICODE)			\
   RS6000_BUILTIN_2 (FUTURE_BUILTIN_ ## ENUM,		/* ENUM */	\
 		    "__builtin_" NAME,			/* NAME */	\
-		    RS6000_BTM_FUTURE,			/* MASK */	\
+		    RS6000_BTM_FUTURE					\
+		    | RS6000_BTM_POWERPC64,		/* MASK */	\
 		    (RS6000_BTC_ ## ATTR		/* ATTR */	\
 		     | RS6000_BTC_BINARY),				\
 		    CODE_FOR_ ## ICODE)			/* ICODE */