middle-end/98773 - always sign extend CHREC_RIGHT
authorRichard Biener <rguenther@suse.de>
Fri, 22 Jan 2021 10:29:17 +0000 (11:29 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 22 Jan 2021 11:49:46 +0000 (12:49 +0100)
commit8bad25eb56bd16f3482f856a75b1c1ae5cfe1c4f
treeee7343ed598d84768a69000931c1c0efd02b6c3a
parent36fe1cdc9534c36c02803ce97557130354d2b2a0
middle-end/98773 - always sign extend CHREC_RIGHT

The previous change exposed a miscompile when trying to interpret
CHREC_RIGHT correctly which in fact it already was to the extent
it is used.  The following reverts this part of the change, only
retaining the singling out of HOST_WIDE_INT_MIN.

2021-01-22  Richard Biener  <rguenther@suse.de>

PR middle-end/98773
* tree-data-ref.c (initalize_matrix_A): Revert previous
change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.

* gcc.dg/torture/pr98773.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr98773.c [new file with mode: 0644]
gcc/tree-data-ref.c