IBM Z: Restrict vec_cmp<m><n> on z13
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 23 Nov 2020 23:22:52 +0000 (00:22 +0100)
committerIlya Leoshkevich <iii@linux.ibm.com>
Tue, 24 Nov 2020 12:31:16 +0000 (13:31 +0100)
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  <iii@linux.ibm.com>

* config/s390/vector.md: Use vcond_comparison_operator
predicate.

gcc/config/s390/vector.md

index fef6864462558e13220d11e78fce685d148cf227..029ee0886c273d63365b0accee420aaa478297d7 100644 (file)
 
 (define_expand "vec_cmp<mode><tointvec>"
   [(set (match_operand:<TOINTVEC>  0 "register_operand" "")
-       (match_operator:<TOINTVEC> 1 ""
+       (match_operator:<TOINTVEC> 1 "vcond_comparison_operator"
          [(match_operand:V_HW     2 "register_operand" "")
           (match_operand:V_HW     3 "register_operand" "")]))]
   "TARGET_VX"