Revert " [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)"
[llvm-project.git] / llvm / test / CodeGen / BPF / assembler-disassembler-v4.s
blobd52985986bdc36122a819b8c23399e1537dc45d9
1 // RUN: llvm-mc -triple bpfel --mcpu=v4 --assemble --filetype=obj %s \
2 // RUN: | llvm-objdump -d --mattr=+alu32 - \
3 // RUN: | FileCheck %s
5 // CHECK: d7 01 00 00 10 00 00 00 r1 = bswap16 r1
6 // CHECK: d7 02 00 00 20 00 00 00 r2 = bswap32 r2
7 // CHECK: d7 03 00 00 40 00 00 00 r3 = bswap64 r3
8 r1 = bswap16 r1
9 r2 = bswap32 r2
10 r3 = bswap64 r3
12 // CHECK: 91 41 00 00 00 00 00 00 r1 = *(s8 *)(r4 + 0x0)
13 // CHECK: 89 52 04 00 00 00 00 00 r2 = *(s16 *)(r5 + 0x4)
14 // CHECK: 81 63 08 00 00 00 00 00 r3 = *(s32 *)(r6 + 0x8)
15 r1 = *(s8 *)(r4 + 0)
16 r2 = *(s16 *)(r5 + 4)
17 r3 = *(s32 *)(r6 + 8)
19 // CHECK: 91 41 00 00 00 00 00 00 r1 = *(s8 *)(r4 + 0x0)
20 // CHECK: 89 52 04 00 00 00 00 00 r2 = *(s16 *)(r5 + 0x4)
21 r1 = *(s8 *)(r4 + 0)
22 r2 = *(s16 *)(r5 + 4)
24 // CHECK: bf 41 08 00 00 00 00 00 r1 = (s8)r4
25 // CHECK: bf 52 10 00 00 00 00 00 r2 = (s16)r5
26 // CHECK: bf 63 20 00 00 00 00 00 r3 = (s32)r6
27 r1 = (s8)r4
28 r2 = (s16)r5
29 r3 = (s32)r6
31 // CHECK: bc 31 08 00 00 00 00 00 w1 = (s8)w3
32 // CHECK: bc 42 10 00 00 00 00 00 w2 = (s16)w4
33 w1 = (s8)w3
34 w2 = (s16)w4
36 // CHECK: 3f 31 01 00 00 00 00 00 r1 s/= r3
37 // CHECK: 9f 42 01 00 00 00 00 00 r2 s%= r4
38 r1 s/= r3
39 r2 s%= r4
41 // CHECK: 3c 31 01 00 00 00 00 00 w1 s/= w3
42 // CHECK: 9c 42 01 00 00 00 00 00 w2 s%= w4
43 w1 s/= w3
44 w2 s%= w4