S/390: Use VEC_INEXACT/VEC_NOINEXACT instead of magic numbers.
authorAndreas Krebbel <krebbel@linux.ibm.com>
Thu, 13 Dec 2018 11:55:43 +0000 (11:55 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Thu, 13 Dec 2018 11:55:43 +0000 (11:55 +0000)
2018-12-13  Andreas Krebbel  <krebbel@linux.ibm.com>

* config/s390/vx-builtins.md ("vec_ctd_s64", "vec_ctd_u64")
("vec_ctsl", "vec_ctul"): Replace 0 with VEC_NOINEXACT.
("vec_double_s64", "vec_double_u64"): Replace 4 with VEC_INEXACT.

From-SVN: r267083

gcc/ChangeLog
gcc/config/s390/vx-builtins.md

index ba32d6d53c17e854a3bd0ee17f8789ed293c27d5..de4a75b5a9efe4054fb5d8a10d53f5ed590f4398 100644 (file)
@@ -1,3 +1,9 @@
+2018-12-13  Andreas Krebbel  <krebbel@linux.ibm.com>
+
+       * config/s390/vx-builtins.md ("vec_ctd_s64", "vec_ctd_u64")
+       ("vec_ctsl", "vec_ctul"): Replace 0 with VEC_NOINEXACT.
+       ("vec_double_s64", "vec_double_u64"): Replace 4 with VEC_INEXACT.
+
 2018-12-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        * doc/invoke.texi (-msve-vector-bits): Clarify -msve-vector-bits=128
index 1fa5a392d91581088d7da0595dbf74e8f1346388..37a64ab58f97e06b65cd1f36d43dbcc3fce397dd 100644 (file)
 (define_expand "vec_ctd_s64"
   [(set (match_operand:V2DF               0 "register_operand" "")
        (unspec:V2DF [(match_operand:V2DI 1 "register_operand" "")
-                     (const_int 4) ; inexact suppressed
+                     (const_int VEC_NOINEXACT)
                      (const_int VEC_RND_CURRENT)]
                     UNSPEC_VEC_VCDGB))
    (use (match_operand:QI 2 "const_int_operand" ""))
 (define_expand "vec_ctd_u64"
   [(set (match_operand:V2DF               0 "register_operand" "")
        (unspec:V2DF [(match_operand:V2DI 1 "register_operand" "")
-                     (const_int 4) ; inexact suppressed
+                     (const_int VEC_NOINEXACT)
                      (const_int VEC_RND_CURRENT)]
                     UNSPEC_VEC_VCDLGB))
    (use (match_operand:QI 2 "const_int_operand" ""))
                                 (match_dup 3)))
    (set (match_operand:V2DI 0 "register_operand" "")
        (unspec:V2DI [(match_dup 4)
-                     (const_int 4) ; inexact suppressed
+                     (const_int VEC_NOINEXACT)
                      (const_int VEC_RND_CURRENT)]
                     UNSPEC_VEC_VCGDB))]
   "TARGET_VX"
                                 (match_dup 3)))
    (set (match_operand:V2DI 0 "register_operand" "")
        (unspec:V2DI [(match_dup 4)
-                     (const_int 4) ; inexact suppressed
+                     (const_int VEC_NOINEXACT)
                      (const_int VEC_RND_CURRENT)]
                     UNSPEC_VEC_VCLGDB))]
   "TARGET_VX"
 (define_expand "vec_double_s64"
   [(set (match_operand:V2DF               0 "register_operand")
        (unspec:V2DF [(match_operand:V2DI 1 "register_operand")
-                     (const_int 0)  ; inexact suppression disabled
+                     (const_int VEC_INEXACT)
                      (const_int VEC_RND_CURRENT)]
                     UNSPEC_VEC_VCDGB))]
   "TARGET_VX")
 (define_expand "vec_double_u64"
   [(set (match_operand:V2DF               0 "register_operand")
        (unspec:V2DF [(match_operand:V2DI 1 "register_operand")
-                     (const_int 0)  ; inexact suppression disabled
+                     (const_int VEC_INEXACT)
                      (const_int VEC_RND_CURRENT)]
                     UNSPEC_VEC_VCDLGB))]
   "TARGET_VX")