aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-11-20 01:34:26 +0800
committerXi Ruoyao <xry111@xry111.site>2023-11-29 15:07:09 +0800
commit3c81a587ad828b60b5b9ed712f728a11cd29d6d3 (patch)
treef0188efe79bedc7f0028e4ae19a434504da843c3 /gcc
parent77f662a831083f76896b85f22729e2a6f8a38e73 (diff)
downloadgcc-3c81a587ad828b60b5b9ed712f728a11cd29d6d3.zip
gcc-3c81a587ad828b60b5b9ed712f728a11cd29d6d3.tar.gz
gcc-3c81a587ad828b60b5b9ed712f728a11cd29d6d3.tar.bz2
LoongArch: Remove lrint_allow_inexact
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>.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/loongarch/loongarch.md5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/config/loongarch/loongarch.md b/gcc/config/loongarch/loongarch.md
index 78ed63f..1e01981 100644
--- a/gcc/config/loongarch/loongarch.md
+++ b/gcc/config/loongarch/loongarch.md
@@ -585,9 +585,6 @@
(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])
@@ -2384,7 +2381,7 @@
(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"