From: Darius Galis Date: Sun, 26 Jan 2020 16:52:56 +0000 (-0700) Subject: Avoid creating string insns unless string support is enabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f6f39ed733e9462dbeef9dd56d52b21b8cd67c5;p=gcc.git Avoid creating string insns unless string support is enabled * config/rx/rx.md (setmemsi): Added rx_allow_string_insns constraint (rx_setmem): Likewise. --- 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.