From 0f6f39ed733e9462dbeef9dd56d52b21b8cd67c5 Mon Sep 17 00:00:00 2001 From: Darius Galis Date: Sun, 26 Jan 2020 09:52:56 -0700 Subject: [PATCH] Avoid creating string insns unless string support is enabled * config/rx/rx.md (setmemsi): Added rx_allow_string_insns constraint (rx_setmem): Likewise. --- gcc/ChangeLog | 5 +++++ gcc/config/rx/rx.md | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 420a124b056..4a30b936e71 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2020-01-26 Darius Galis + + * config/rx/rx.md (setmemsi): Added rx_allow_string_insns constraint + (rx_setmem): Likewise. + 2020-01-26 Jakub Jelinek PR target/93412 diff --git a/gcc/config/rx/rx.md b/gcc/config/rx/rx.md index e9555718c26..0cf5025a6d9 100644 --- a/gcc/config/rx/rx.md +++ b/gcc/config/rx/rx.md @@ -2511,7 +2511,7 @@ (use (match_operand:SI 1 "nonmemory_operand")) ;; Length (match_operand 3 "immediate_operand") ;; Align (unspec_volatile:BLK [(reg:SI 1) (reg:SI 2) (reg:SI 3)] UNSPEC_SETMEM)] - "" + "rx_allow_string_insns" { rtx addr = gen_rtx_REG (SImode, 1); rtx val = gen_rtx_REG (QImode, 2); @@ -2530,7 +2530,7 @@ (unspec_volatile:BLK [(reg:SI 1) (reg:SI 2) (reg:SI 3)] UNSPEC_SETMEM)) (clobber (reg:SI 1)) (clobber (reg:SI 3))] - "" + "rx_allow_string_insns" "sstr.b" [(set_attr "length" "2") (set_attr "timings" "1111")] ;; The timing is a guesstimate. -- 2.30.2