[committed] Fix minor bug on mn103 port

Message ID fb5f51fa-dbbc-463f-968d-a28a71ecc535@gmail.com
State Accepted
Headers
Series [committed] Fix minor bug on mn103 port |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Jeff Law Jan. 9, 2024, 5:10 p.m. UTC
  Richard Sandiford debugged a failure on the mn103 port with his 
late-combine patches down to the subdi3 pattern not specifying the isa 
on alternatives which required newer variants of the chip family.

This patch adds the missing isa attribute and the port now works with 
his late-combine patch.  I'm pushing this to the trunk on his behalf.

Jeff
commit 9aaed2c1d7e54cee6966c632ced80e643525fe89
Author: Richard Sandiford <richard.sandiford@arm.com>
Date:   Tue Jan 9 10:07:09 2024 -0700

    [committed] Fix minor bug on mn103 port
    
    Richard Sandiford debugged a failure on the mn103 port with his late-combine
    patches down to the subdi3 pattern not specifying the isa on alternatives which
    required newer variants of the chip family.
    
    This patch adds the missing isa attribute and the port now works with his
    late-combine patch.  I'm pushing this to the trunk on his behalf.
    
    gcc/
            * config/mn10300/mn10300.md (subdi3_degenerate): Add isa attribute.
  

Patch

diff --git a/gcc/config/mn10300/mn10300.md b/gcc/config/mn10300/mn10300.md
index 939f20d5a58..80b07cc4b36 100644
--- a/gcc/config/mn10300/mn10300.md
+++ b/gcc/config/mn10300/mn10300.md
@@ -957,7 +957,9 @@  (define_insn_and_split "*subdi3_degenerate"
   if (scratch)
     emit_move_insn (operands[0], scratch);
   DONE;
-})
+}
+  [(set_attr "isa" "*,am33")])
+
 
 (define_insn_and_split "negsi2"
   [(set (match_operand:SI         0 "register_operand"  "=D,&r")