xref: /llvm-project/llvm/test/MC/LoongArch/lasx/stelm.s (revision 99d74edcf5847a108744f652ca2e8f462777fa61)
1# RUN: llvm-mc --triple=loongarch64 --show-encoding %s | \
2# RUN:        FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3# RUN: llvm-mc --triple=loongarch64 --filetype=obj %s | \
4# RUN:        llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-INST
5
6xvstelm.b $xr20, $r2, -105, 10
7# CHECK-INST: xvstelm.b $xr20, $tp, -105, 10
8# CHECK-ENCODING: encoding: [0x54,0x5c,0xaa,0x33]
9
10xvstelm.h $xr8, $r1, 160, 4
11# CHECK-INST: xvstelm.h $xr8, $ra, 160, 4
12# CHECK-ENCODING: encoding: [0x28,0x40,0x51,0x33]
13
14xvstelm.w $xr19, $r18, 412, 0
15# CHECK-INST: xvstelm.w $xr19, $t6, 412, 0
16# CHECK-ENCODING: encoding: [0x53,0x9e,0x21,0x33]
17
18xvstelm.d $xr22, $r30, 960, 3
19# CHECK-INST: xvstelm.d $xr22, $s7, 960, 3
20# CHECK-ENCODING: encoding: [0xd6,0xe3,0x1d,0x33]
21