PR target/77324
* config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
HIGH+LO construct during reload.
From-SVN: r239807
+2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
+
+ PR target/77324
+ * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
+ HIGH+LO construct during reload.
+
2016-08-28 Tom de Vries <tom@codesourcery.com>
PR lto/70955
than the alignment (8) may cause the LO_SUM to overflow. */
if (mode == TFmode && TARGET_ARCH32)
return 0;
+
+ /* During reload, accept the HIGH+LO_SUM construct generated by
+ sparc_legitimize_reload_address. */
+ if (reload_in_progress
+ && GET_CODE (rs1) == HIGH
+ && XEXP (rs1, 0) == imm1)
+ return 1;
}
else if (GET_CODE (addr) == CONST_INT && SMALL_INT (addr))
return 1;