diff options
author | Andrew Pinski <apinski@marvell.com> | 2022-08-12 00:44:16 +0000 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2022-08-24 12:15:30 -0700 |
commit | 7770e0ad8f4bcd2c7852fa88eb7d5235f68a811d (patch) | |
tree | 83eb9f5819a0a9de1b32e71077145d4a501d06b1 /gcc | |
parent | 3f9061d95d5835ef0d3c46de1076d62d27513e6b (diff) | |
download | gcc-7770e0ad8f4bcd2c7852fa88eb7d5235f68a811d.zip gcc-7770e0ad8f4bcd2c7852fa88eb7d5235f68a811d.tar.gz gcc-7770e0ad8f4bcd2c7852fa88eb7d5235f68a811d.tar.bz2 |
[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/sync.md (any_atomic, atomic_optab): Move to ...
* config/riscv/iterators.md: Here.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/riscv/iterators.md | 7 | ||||
-rw-r--r-- | 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 cb57ac7..2d7223d 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 86b41e6b..7deb290 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" |