https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126121
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2026-07-05
--- Comment #2 from Drea Pinski <pinskia at gcc dot gnu.org> ---
These set of patterns were added with r0-8605-g7bc89c296cf250 .
```
;; set bit, bit number is int
(define_insn "bsetmemqi"
[(set (match_operand:QI 0 "memory_operand" "+m")
(ior:QI (subreg:QI (ashift:SI (const_int 1)
(match_operand:SI 1 "general_operand" "d")) 3)
(match_dup 0)))]
""
"bset %1,%0"
[(set_attr "type" "bitrw")])
;; set bit, bit number is (sign/zero)_extended from HImode/QImode
(define_insn "*bsetmemqi_ext"
[(set (match_operand:QI 0 "memory_operand" "+m")
(ior:QI (subreg:QI (ashift:SI (const_int 1)
(match_operator:SI 2 "extend_operator"
[(match_operand 1 "general_operand" "d")])) 3)
(match_dup 0)))]
""
"bset %1,%0"
[(set_attr "type" "bitrw")])
```