+2018-11-20 Ilya Leoshkevich <iii@linux.ibm.com>
+
+ PR target/88083
+ * config/s390/s390.md: Skip LT(G) peephole when literal pool is
+ involved.
+ * rtl.h (contains_constant_pool_address_p): New function.
+ * rtlanal.c (contains_constant_pool_address_p): Likewise.
+
2018-11-20 Richard Biener <rguenther@suse.de>
PR middle-end/83215
(compare (match_dup 0) (match_operand:GPR 1 "const0_operand")))]
"s390_match_ccmode(insn, CCSmode) && TARGET_EXTIMM
&& GENERAL_REG_P (operands[0])
- && satisfies_constraint_T (operands[2])"
+ && satisfies_constraint_T (operands[2])
+ && !contains_constant_pool_address_p (operands[2])"
[(parallel
[(set (reg:CCS CC_REGNUM)
(compare:CCS (match_dup 2) (match_dup 1)))
extern rtx single_set_2 (const rtx_insn *, const_rtx);
extern bool contains_symbol_ref_p (const_rtx);
extern bool contains_symbolic_reference_p (const_rtx);
+extern bool contains_constant_pool_address_p (const_rtx);
/* Handle the cheap and common cases inline for performance. */
return false;
}
+/* Return true if RTL X contains a constant pool address. */
+
+bool
+contains_constant_pool_address_p (const_rtx x)
+{
+ subrtx_iterator::array_type array;
+ FOR_EACH_SUBRTX (iter, array, x, ALL)
+ if (SYMBOL_REF_P (*iter) && CONSTANT_POOL_ADDRESS_P (*iter))
+ return true;
+
+ return false;
+}
+
+
/* Return true if X contains a thread-local symbol. */
bool
+2018-11-20 Ilya Leoshkevich <iii@linux.ibm.com>
+
+ PR target/88083
+ * gcc.target/s390/pr88083.c: New test.
+
2018-11-20 Richard Biener <rguenther@suse.de>
PR middle-end/83215
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-fno-sched-last-insn-heuristic -fno-dce -march=z196 -O2" } */
+
+void *a, *b;
+
+void c(void)
+{
+ __builtin_memcpy(a, b, -1); /* { dg-warning "exceeds maximum object size" } */
+}