public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/pinskia/heads/riscvbit)] [RISCV] Move iterators from sync.md to iterators.md
@ 2022-08-15 23:13 Andrew Pinski
0 siblings, 0 replies; only message in thread
From: Andrew Pinski @ 2022-08-15 23:13 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ad17c841878a4acece8c81a400070754332fe369
commit ad17c841878a4acece8c81a400070754332fe369
Author: Andrew Pinski <apinski@marvell.com>
Date: Fri Aug 12 00:44:16 2022 +0000
[RISCV] Move iterators from sync.md to iterators.md
Like the previous two patches this moves the iterators
that are in sync.md to iterators.md.
OK? build and tested for riscv64-linux-gnu.
gcc/ChangeLog:
* config/riscv/iterators.md:
* config/riscv/sync.md:
Change-Id: I93436231ef30aa4c6fc1ce8202c2b577f0c80854
Diff:
---
gcc/config/riscv/iterators.md | 7 +++++++
gcc/config/riscv/sync.md | 4 ----
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/gcc/config/riscv/iterators.md b/gcc/config/riscv/iterators.md
index a58d6771d66..7edc4e05fdd 100644
--- a/gcc/config/riscv/iterators.md
+++ b/gcc/config/riscv/iterators.md
@@ -150,6 +150,9 @@
(define_code_iterator any_lt [lt ltu])
(define_code_iterator any_le [le leu])
+; atomics code iterator
+(define_code_iterator any_atomic [plus ior xor and])
+
; bitmanip code iterators
(define_code_iterator bitmanip_bitwise [and ior])
@@ -204,6 +207,10 @@
(plus "add")
(minus "sub")])
+; atomics code attribute
+(define_code_attr atomic_optab
+ [(plus "add") (ior "or") (xor "xor") (and "and")])
+
; bitmanip code attributes
(define_code_attr bitmanip_optab [(smin "smin")
(smax "smax")
diff --git a/gcc/config/riscv/sync.md b/gcc/config/riscv/sync.md
index 86b41e6b00a..7deb290d9dc 100644
--- a/gcc/config/riscv/sync.md
+++ b/gcc/config/riscv/sync.md
@@ -27,10 +27,6 @@
UNSPEC_MEMORY_BARRIER
])
-(define_code_iterator any_atomic [plus ior xor and])
-(define_code_attr atomic_optab
- [(plus "add") (ior "or") (xor "xor") (and "and")])
-
;; Memory barriers.
(define_expand "mem_thread_fence"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-15 23:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-15 23:13 [gcc(refs/users/pinskia/heads/riscvbit)] [RISCV] Move iterators from sync.md to iterators.md Andrew Pinski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).