]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Convert xstormy16 to LRA
authorJeff Law <jlaw@ventanamicro>
Mon, 1 May 2023 13:40:38 +0000 (07:40 -0600)
committerJeff Law <jlaw@ventanamicro>
Mon, 1 May 2023 13:40:38 +0000 (07:40 -0600)
This patch converts the xstormy16 patch to LRA.  It introduces a code
quality regression in the shiftsi testcase, but it also fixes numerous
aborts/errors.  IMHO it's a good tradeoff.

gcc/

* config/stormy16/stormy16.cc (TARGET_LRA_P): Remove defintion.

gcc/config/stormy16/stormy16.cc

index 98f87fa8251a1cb7d047f104d55eabaad61afe8b..81b32dbc958cb1c97e30aba04b0784f8320be25f 100644 (file)
@@ -2894,9 +2894,6 @@ xstormy16_push_rounding (poly_int64 bytes)
 #undef  TARGET_PREFERRED_OUTPUT_RELOAD_CLASS
 #define TARGET_PREFERRED_OUTPUT_RELOAD_CLASS xstormy16_preferred_reload_class
 
-#undef TARGET_LRA_P
-#define TARGET_LRA_P hook_bool_void_false
-
 #undef TARGET_LEGITIMATE_ADDRESS_P
 #define TARGET_LEGITIMATE_ADDRESS_P    xstormy16_legitimate_address_p
 #undef TARGET_MODE_DEPENDENT_ADDRESS_P