34 lines · plain
1# RUN: not llvm-mc -mcpu=v4 -triple bpfel < %s 2>&1 \2# RUN: | grep 'error: operand is not an identifier or 16-bit signed integer' \3# RUN: | count 24# RUN: not llvm-mc -mcpu=v4 -triple bpfel < %s 2>&1 \5# RUN: | grep 'error: operand is not a 16-bit signed integer' \6# RUN: | count 257 if r1 > r2 goto +700008 if r1 > r2 goto -700009 *(u64 *)(r1 + 70000) = 1010 *(u32 *)(r1 - 70000) = 1011 *(u16 *)(r1 - 70000) = 1012 *(u8 *)(r1 - 70000) = 1013 *(u64 *)(r1 + 70000) = r114 *(u32 *)(r1 - 70000) = r115 *(u16 *)(r1 - 70000) = r116 *(u8 *)(r1 - 70000) = r117 r1 = *(u64 *)(r1 + 70000)18 r1 = *(u32 *)(r1 - 70000)19 r1 = *(u16 *)(r1 - 70000)20 r1 = *(u8 *)(r1 - 70000)21 r1 = *(s32 *)(r1 + 70000)22 r1 = *(s16 *)(r1 - 70000)23 r1 = *(s8 *)(r1 - 70000)24 lock *(u32*)(r1 + 70000) += w225 lock *(u32*)(r1 - 70000) &= w226 lock *(u32*)(r1 - 70000) |= w227 lock *(u32*)(r1 - 70000) ^= w228 r0 = atomic_fetch_add((u64 *)(r1 + 70000), r0)29 r0 = atomic_fetch_and((u64 *)(r1 + 70000), r0)30 r0 = atomic_fetch_xor((u64 *)(r1 + 70000), r0)31 r0 = atomic_fetch_or((u64 *)(r1 + 70000), r0)32 w0 = cmpxchg32_32(r1 + 70000, w0, w1)33 r0 = cmpxchg_64(r1 + 70000, r0, r1)34