]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/testsuite/gas/bpf/atomic.s
Revert "2.41 Release sources"
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / bpf / atomic.s
index 0119b24c8bb31f0f54b39f44698e9d158513bb7f..39ad5ce42f03f3c99d3e941ec1a555a04bc4774b 100644 (file)
@@ -1,5 +1,24 @@
-        # Test for eBPF ADDW and ADDDW instructions
+        # Test for eBPF atomic instructions
         .text
-        xadddw [%r1+0x1eef], %r2
-        xaddw  [%r1+0x1eef], %r2
-        
+        aadd   [%r1+0x1eef], %r2
+        aadd32 [%r1+0x1eef], %r2
+        aand   [%r1+0x1eef], %r2
+        aand32 [%r1+0x1eef], %r2
+        aor    [%r1+0x1eef], %r2
+        aor32  [%r1+0x1eef], %r2
+        axor   [%r1+0x1eef], %r2
+        axor32 [%r1+0x1eef], %r2
+
+        afadd  [%r1+0x1eef], %r2
+        afadd32        [%r1+0x1eef], %r2
+        afand  [%r1+0x1eef], %r2
+        afand32        [%r1+0x1eef], %r2
+        afor   [%r1+0x1eef], %r2
+        afor32 [%r1+0x1eef], %r2
+        afxor  [%r1+0x1eef], %r2
+        afxor32        [%r1+0x1eef], %r2
+
+        acmp   [%r1+4], %r2
+        acmp32 [%r2+4], %r3
+        axchg  [%r1+8], %r2
+        axchg32        [%r1+8], %r3