From 4acba4859013ecaa5d109244f5b1cf95a090f3e3 Mon Sep 17 00:00:00 2001 From: Ilya Leoshkevich Date: Tue, 24 Nov 2020 00:22:52 +0100 Subject: [PATCH] IBM Z: Restrict vec_cmp on z13 Commit 5d9ade39b872 ("IBM Z: Fix PR97326: Enable fp compares in vec_cmp") made it possible to create rtxes that describe signaling comparisons on z13, which are not supported by the hardware. Restrict this by using vcond_comparison_operator predicate. gcc/ChangeLog: 2020-11-24 Ilya Leoshkevich * config/s390/vector.md: Use vcond_comparison_operator predicate. --- gcc/config/s390/vector.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/s390/vector.md b/gcc/config/s390/vector.md index fef68644625..029ee0886c2 100644 --- a/gcc/config/s390/vector.md +++ b/gcc/config/s390/vector.md @@ -1561,7 +1561,7 @@ (define_expand "vec_cmp" [(set (match_operand: 0 "register_operand" "") - (match_operator: 1 "" + (match_operator: 1 "vcond_comparison_operator" [(match_operand:V_HW 2 "register_operand" "") (match_operand:V_HW 3 "register_operand" "")]))] "TARGET_VX" -- 2.30.2