diff mbox series

amdgcn: Fix subdf3 pattern

Message ID 20210113005852.114459-1-julian@codesourcery.com
State New
Headers show
Series amdgcn: Fix subdf3 pattern | expand

Commit Message

Julian Brown Jan. 13, 2021, 12:58 a.m. UTC
This patch fixes a typo in the subdf3 pattern that meant it had a
non-standard name and thus the compiler would emit a libcall rather than
the proper hardware instruction for DFmode subtraction.

Tested with standalone AMD GCN target. I will commit shortly.

Julian

2021-01-13  Julian Brown  <julian@codesourcery.com>

gcc/
	* config/gcn/gcn-valu.md (subdf): Rename to...
	(subdf3): This.
---
 gcc/config/gcn/gcn-valu.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/config/gcn/gcn-valu.md b/gcc/config/gcn/gcn-valu.md
index 59d9849cb4e..24c17212c2a 100644
--- a/gcc/config/gcn/gcn-valu.md
+++ b/gcc/config/gcn/gcn-valu.md
@@ -2185,7 +2185,7 @@ 
   [(set_attr "type" "vop3a")
    (set_attr "length" "8,8")])
 
-(define_insn "subdf"
+(define_insn "subdf3"
   [(set (match_operand:DF 0 "register_operand"  "=  v,   v")
 	(minus:DF
 	  (match_operand:DF 1 "gcn_alu_operand" "vSvB,   v")