Skip to content

Commit

Permalink
hppa: Remove inner fix:SF/DF from fixed-point patterns
Browse files Browse the repository at this point in the history
2024-11-13  John David Anglin  <[email protected]>

gcc/ChangeLog:

	PR target/117525
	* config/pa/pa.md (fix_truncsfsi2): Remove inner `fix:SF`.
	(fix_truncdfsi2, fix_truncsfdi2, fix_truncdfdi2,
	fixuns_truncsfsi2, fixuns_truncdfsi2, fixuns_truncsfdi2,
	fixuns_truncdfdi2): Likewise.
  • Loading branch information
John David Anglin committed Nov 13, 2024
1 parent e41fdca commit 424bd4c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions gcc/config/pa/pa.md
Original file line number Diff line number Diff line change
Expand Up @@ -4908,31 +4908,31 @@

(define_insn "fix_truncsfsi2"
[(set (match_operand:SI 0 "register_operand" "=f")
(fix:SI (fix:SF (match_operand:SF 1 "register_operand" "f"))))]
(fix:SI (match_operand:SF 1 "register_operand" "f")))]
"! TARGET_SOFT_FLOAT"
"{fcnvfxt,sgl,sgl|fcnv,t,sgl,w} %1,%0"
[(set_attr "type" "fpalu")
(set_attr "length" "4")])

(define_insn "fix_truncdfsi2"
[(set (match_operand:SI 0 "register_operand" "=f")
(fix:SI (fix:DF (match_operand:DF 1 "register_operand" "f"))))]
(fix:SI (match_operand:DF 1 "register_operand" "f")))]
"! TARGET_SOFT_FLOAT"
"{fcnvfxt,dbl,sgl|fcnv,t,dbl,w} %1,%0"
[(set_attr "type" "fpalu")
(set_attr "length" "4")])

(define_insn "fix_truncsfdi2"
[(set (match_operand:DI 0 "register_operand" "=f")
(fix:DI (fix:SF (match_operand:SF 1 "register_operand" "f"))))]
(fix:DI (match_operand:SF 1 "register_operand" "f")))]
"TARGET_PA_11 && ! TARGET_SOFT_FLOAT"
"{fcnvfxt,sgl,dbl|fcnv,t,sgl,dw} %1,%0"
[(set_attr "type" "fpalu")
(set_attr "length" "4")])

(define_insn "fix_truncdfdi2"
[(set (match_operand:DI 0 "register_operand" "=f")
(fix:DI (fix:DF (match_operand:DF 1 "register_operand" "f"))))]
(fix:DI (match_operand:DF 1 "register_operand" "f")))]
"TARGET_PA_11 && ! TARGET_SOFT_FLOAT"
"{fcnvfxt,dbl,dbl|fcnv,t,dbl,dw} %1,%0"
[(set_attr "type" "fpalu")
Expand Down Expand Up @@ -4972,31 +4972,31 @@

(define_insn "fixuns_truncsfsi2"
[(set (match_operand:SI 0 "register_operand" "=f")
(unsigned_fix:SI (fix:SF (match_operand:SF 1 "register_operand" "f"))))]
(unsigned_fix:SI (match_operand:SF 1 "register_operand" "f")))]
"! TARGET_SOFT_FLOAT && TARGET_PA_20"
"fcnv,t,sgl,uw %1,%0"
[(set_attr "type" "fpalu")
(set_attr "length" "4")])

(define_insn "fixuns_truncdfsi2"
[(set (match_operand:SI 0 "register_operand" "=f")
(unsigned_fix:SI (fix:DF (match_operand:DF 1 "register_operand" "f"))))]
(unsigned_fix:SI (match_operand:DF 1 "register_operand" "f")))]
"! TARGET_SOFT_FLOAT && TARGET_PA_20"
"fcnv,t,dbl,uw %1,%0"
[(set_attr "type" "fpalu")
(set_attr "length" "4")])

(define_insn "fixuns_truncsfdi2"
[(set (match_operand:DI 0 "register_operand" "=f")
(unsigned_fix:DI (fix:SF (match_operand:SF 1 "register_operand" "f"))))]
(unsigned_fix:DI (match_operand:SF 1 "register_operand" "f")))]
"! TARGET_SOFT_FLOAT && TARGET_PA_20"
"fcnv,t,sgl,udw %1,%0"
[(set_attr "type" "fpalu")
(set_attr "length" "4")])

(define_insn "fixuns_truncdfdi2"
[(set (match_operand:DI 0 "register_operand" "=f")
(unsigned_fix:DI (fix:DF (match_operand:DF 1 "register_operand" "f"))))]
(unsigned_fix:DI (match_operand:DF 1 "register_operand" "f")))]
"! TARGET_SOFT_FLOAT && TARGET_PA_20"
"fcnv,t,dbl,udw %1,%0"
[(set_attr "type" "fpalu")
Expand Down

0 comments on commit 424bd4c

Please sign in to comment.