aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2024-06-21 15:40:11 +0100
committerRichard Sandiford <richard.sandiford@arm.com>2024-06-21 15:40:11 +0100
commit5320bcbd342a985a6e1db60bff2918f73dcad1a0 (patch)
treeec6880832cc2dd393231f73a0a44cf98adbb7970
parent8f254cd4e40b692e5f01a3b40f2b5b60c8528a1e (diff)
downloadgcc-5320bcbd342a985a6e1db60bff2918f73dcad1a0.zip
gcc-5320bcbd342a985a6e1db60bff2918f73dcad1a0.tar.gz
gcc-5320bcbd342a985a6e1db60bff2918f73dcad1a0.tar.bz2
xstormy16: Fix xs_hi_nonmemory_operand
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.
-rw-r--r--gcc/config/stormy16/predicates.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/stormy16/predicates.md b/gcc/config/stormy16/predicates.md
index 67c2ddc..085c9c5 100644
--- a/gcc/config/stormy16/predicates.md
+++ b/gcc/config/stormy16/predicates.md
@@ -152,7 +152,7 @@
})
(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);
})