diff mbox series

s390: Make use of new copysign RTL

Message ID 20231005064628.458478-1-stefansf@linux.ibm.com
State New
Headers show
Series s390: Make use of new copysign RTL | expand

Commit Message

Stefan Schulze Frielinghaus Oct. 5, 2023, 6:46 a.m. UTC
gcc/ChangeLog:

	* config/s390/s390.md: Make use of new copysign RTL.
---
 gcc/config/s390/s390.md | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Comments

Andreas Krebbel Oct. 7, 2023, 5:39 a.m. UTC | #1
On 10/5/23 08:46, Stefan Schulze Frielinghaus wrote:
> gcc/ChangeLog:
> 
> 	* config/s390/s390.md: Make use of new copysign RTL.

Ok. Thanks!

Andreas

> ---
>  gcc/config/s390/s390.md | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/gcc/config/s390/s390.md b/gcc/config/s390/s390.md
> index 9631b2a8c60..3f29ba21442 100644
> --- a/gcc/config/s390/s390.md
> +++ b/gcc/config/s390/s390.md
> @@ -124,7 +124,6 @@
>  
>     ; Byte-wise Population Count
>     UNSPEC_POPCNT
> -   UNSPEC_COPYSIGN
>  
>     ; Load FP Integer
>     UNSPEC_FPINT_FLOOR
> @@ -11918,9 +11917,8 @@
>  
>  (define_insn "copysign<mode>3<tf_fpr>"
>    [(set (match_operand:FP 0 "register_operand" "=f")
> -      (unspec:FP [(match_operand:FP 1 "register_operand" "<fT0>")
> -                  (match_operand:FP 2 "register_operand" "f")]
> -                  UNSPEC_COPYSIGN))]
> +	(copysign:FP (match_operand:FP 1 "register_operand" "<fT0>")
> +		     (match_operand:FP 2 "register_operand" "f")))]
>    "TARGET_Z196"
>    "cpsdr\t%0,%2,%1"
>    [(set_attr "op_type"  "RRF")
diff mbox series

Patch

diff --git a/gcc/config/s390/s390.md b/gcc/config/s390/s390.md
index 9631b2a8c60..3f29ba21442 100644
--- a/gcc/config/s390/s390.md
+++ b/gcc/config/s390/s390.md
@@ -124,7 +124,6 @@ 
 
    ; Byte-wise Population Count
    UNSPEC_POPCNT
-   UNSPEC_COPYSIGN
 
    ; Load FP Integer
    UNSPEC_FPINT_FLOOR
@@ -11918,9 +11917,8 @@ 
 
 (define_insn "copysign<mode>3<tf_fpr>"
   [(set (match_operand:FP 0 "register_operand" "=f")
-      (unspec:FP [(match_operand:FP 1 "register_operand" "<fT0>")
-                  (match_operand:FP 2 "register_operand" "f")]
-                  UNSPEC_COPYSIGN))]
+	(copysign:FP (match_operand:FP 1 "register_operand" "<fT0>")
+		     (match_operand:FP 2 "register_operand" "f")))]
   "TARGET_Z196"
   "cpsdr\t%0,%2,%1"
   [(set_attr "op_type"  "RRF")