[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / BPF / load-store-32.s
blobbe576d27204655ab482bfa9c336fee56d0790604
1 # RUN: llvm-mc -triple bpfel -filetype=obj -o %t %s
2 # RUN: llvm-objdump -mattr=+alu32 -d -r %t | FileCheck --check-prefix=CHECK-32 %s
3 # RUN: llvm-objdump -d -r %t | FileCheck %s
5 // ======== BPF_LDX Class ========
6 w5 = *(u8 *)(r0 + 0) // BPF_LDX | BPF_B
7 w6 = *(u16 *)(r1 + 8) // BPF_LDX | BPF_H
8 w7 = *(u32 *)(r2 + 16) // BPF_LDX | BPF_W
9 // CHECK-32: 71 05 00 00 00 00 00 00 w5 = *(u8 *)(r0 + 0)
10 // CHECK-32: 69 16 08 00 00 00 00 00 w6 = *(u16 *)(r1 + 8)
11 // CHECK-32: 61 27 10 00 00 00 00 00 w7 = *(u32 *)(r2 + 16)
12 // CHECK: 71 05 00 00 00 00 00 00 r5 = *(u8 *)(r0 + 0)
13 // CHECK: 69 16 08 00 00 00 00 00 r6 = *(u16 *)(r1 + 8)
14 // CHECK: 61 27 10 00 00 00 00 00 r7 = *(u32 *)(r2 + 16)
16 // ======== BPF_STX Class ========
17 *(u8 *)(r0 + 0) = w7 // BPF_STX | BPF_B
18 *(u16 *)(r1 + 8) = w8 // BPF_STX | BPF_H
19 *(u32 *)(r2 + 16) = w9 // BPF_STX | BPF_W
20 lock *(u32 *)(r2 + 16) += w9 // BPF_STX | BPF_W | BPF_XADD
21 // CHECK-32: 73 70 00 00 00 00 00 00 *(u8 *)(r0 + 0) = w7
22 // CHECK-32: 6b 81 08 00 00 00 00 00 *(u16 *)(r1 + 8) = w8
23 // CHECK-32: 63 92 10 00 00 00 00 00 *(u32 *)(r2 + 16) = w9
24 // CHECK-32: c3 92 10 00 00 00 00 00 lock *(u32 *)(r2 + 16) += w9
25 // CHECK: 73 70 00 00 00 00 00 00 *(u8 *)(r0 + 0) = r7
26 // CHECK: 6b 81 08 00 00 00 00 00 *(u16 *)(r1 + 8) = r8
27 // CHECK: 63 92 10 00 00 00 00 00 *(u32 *)(r2 + 16) = r9
28 // CHECK: c3 92 10 00 00 00 00 00 lock *(u32 *)(r2 + 16) += r9