From b2c113aed6f2ae2fca28cd5a8fab9c857b97dd2b Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Thu, 5 Sep 2019 14:21:28 +0000 Subject: [PATCH] Global GCN instructions need nops too. 2019-09-05 Andrew Stubbs gcc/ * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store. (sync_compare_and_swap_insn): Likewise. From-SVN: r275414 --- gcc/ChangeLog | 5 +++++ gcc/config/gcn/gcn.md | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6caf6357e48..805a24f8684 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-09-05 Andrew Stubbs + + * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store. + (sync_compare_and_swap_insn): Likewise. + 2019-09-05 Bernd Edlinger PR middle-end/91615 diff --git a/gcc/config/gcn/gcn.md b/gcc/config/gcn/gcn.md index bbd2db29515..36908ba45f6 100644 --- a/gcc/config/gcn/gcn.md +++ b/gcc/config/gcn/gcn.md @@ -652,7 +652,7 @@ } [(set_attr "type" "mult,smem,smem,flat,flat,vmult,vmult,vmult,flat,flat,\ ds,ds") - (set_attr "delayeduse" "*,*,yes,*,*,*,*,*,*,*,*,*") + (set_attr "delayeduse" "*,*,yes,*,*,*,*,*,yes,*,*,*") (set_attr "length" "*,12,12,12,12,*,*,*,12,12,12,12")]) ;; }}} @@ -1619,7 +1619,7 @@ [(set_attr "type" "smem,flat,flat") (set_attr "length" "12") (set_attr "gcn_version" "gcn5,*,gcn5") - (set_attr "delayeduse" "*,yes,*")]) + (set_attr "delayeduse" "*,yes,yes")]) (define_insn "sync_compare_and_swap_lds_insn" [(set (match_operand:SIDI 0 "register_operand" "= v") -- 2.30.2