middle-end/113344 - is_truth_type_for vs GENERIC tcc_comparison
commit160799b366c33246ca16b84020ec49c3feabb0a3
authorRichard Biener <rguenther@suse.de>
Fri, 12 Jan 2024 07:33:48 +0000 (12 08:33 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 12 Jan 2024 08:51:16 +0000 (12 09:51 +0100)
treee706d75762405d097b91ccaa7b4f1592c2148022
parent72b3495dfdddc27753f66eb77fff647d619f75f0
middle-end/113344 - is_truth_type_for vs GENERIC tcc_comparison

On GENERIC tcc_comparison can have int type so restrict the PR113126
fix to vector types.

PR middle-end/113344
* match.pd ((double)float CMP (double)float -> float CMP float):
Perform result type check only for vectors.
* fold-const.cc (fold_binary_loc): Likewise.
gcc/fold-const.cc
gcc/match.pd