]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: Remove lrint_allow_inexact
authorXi Ruoyao <xry111@xry111.site>
Sun, 19 Nov 2023 17:34:26 +0000 (01:34 +0800)
committerXi Ruoyao <xry111@xry111.site>
Wed, 29 Nov 2023 07:07:09 +0000 (15:07 +0800)
No functional change, just a cleanup.

gcc/ChangeLog:

* config/loongarch/loongarch.md (lrint_allow_inexact): Remove.
(<lrint_pattern><ANYF:mode><ANYFI:mode>2): Check if <LRINT>
== UNSPEC_FTINT instead of <lrint_allow_inexact>.

gcc/config/loongarch/loongarch.md

index 78ed63f213260f81a6adce0ecb8955fc4a5861a5..1e019815451e4909b154af9161b794901b7341c2 100644 (file)
 (define_int_attr lrint_submenmonic [(UNSPEC_FTINT "")
                                    (UNSPEC_FTINTRM "rm")
                                    (UNSPEC_FTINTRP "rp")])
-(define_int_attr lrint_allow_inexact [(UNSPEC_FTINT "1")
-                                     (UNSPEC_FTINTRM "0")
-                                     (UNSPEC_FTINTRP "0")])
 
 ;; Iterator and attributes for bytepick.d
 (define_int_iterator bytepick_w_ashift_amount [8 16 24])
        (unspec:ANYFI [(match_operand:ANYF 1 "register_operand" "f")]
                      LRINT))]
   "TARGET_HARD_FLOAT &&
-   (<lrint_allow_inexact>
+   (<LRINT> == UNSPEC_FTINT
     || flag_fp_int_builtin_inexact
     || !flag_trapping_math)"
   "ftint<lrint_submenmonic>.<ANYFI:ifmt>.<ANYF:fmt> %0,%1"