]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[RISCV] Move iterators from sync.md to iterators.md
authorAndrew Pinski <apinski@marvell.com>
Fri, 12 Aug 2022 00:44:16 +0000 (00:44 +0000)
committerAndrew Pinski <apinski@marvell.com>
Wed, 24 Aug 2022 19:15:30 +0000 (12:15 -0700)
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.

gcc/config/riscv/iterators.md
gcc/config/riscv/sync.md

index cb57ac7cb7b39733f1446f162c950083659a43f3..2d7223d8a8a919f3b9b9056a861affbd2d921bb2 100644 (file)
 (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])
 
                        (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")
index 86b41e6b00a9331ed4b46e73cc66c102c6d2d981..7deb290d9dc0dadf374a295fb9133b144e94f4b7 100644 (file)
   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"