Commit 0f6f39ed by Darius Galis Committed by Jeff Law

Avoid creating string insns unless string support is enabled

	* config/rx/rx.md (setmemsi): Added rx_allow_string_insns constraint
	(rx_setmem): Likewise.
parent a9947bac
2020-01-26 Darius Galis <darius.galis@cyberthorstudios.com>
* config/rx/rx.md (setmemsi): Added rx_allow_string_insns constraint
(rx_setmem): Likewise.
2020-01-26 Jakub Jelinek <jakub@redhat.com>
PR target/93412
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment