]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
xstormy16: Fix xs_hi_nonmemory_operand
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 21 Jun 2024 14:40:11 +0000 (15:40 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Fri, 21 Jun 2024 14:40:11 +0000 (15:40 +0100)
All uses of xs_hi_nonmemory_operand allow constraint "i",
which means that they allow consts, symbol_refs and label_refs.
The definition of xs_hi_nonmemory_operand accounted for consts,
but not for symbol_refs and label_refs.

gcc/
* config/stormy16/predicates.md (xs_hi_nonmemory_operand): Handle
symbol_ref and label_ref.

gcc/config/stormy16/predicates.md

index 67c2ddc107c83bf92c232708d7bed9a3fddd9348..085c9c5ed2dec65e5b6873e9ba2e1025a0a385d3 100644 (file)
 })
 
 (define_predicate "xs_hi_nonmemory_operand"
-  (match_code "const_int,reg,subreg,const")
+  (match_code "const_int,reg,subreg,const,symbol_ref,label_ref")
 {
   return nonmemory_operand (op, mode);
 })