xref: /llvm-project/llvm/test/MC/LoongArch/lasx/replve0.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
6xvreplve0.b $xr11, $xr20
7# CHECK-INST: xvreplve0.b $xr11, $xr20
8# CHECK-ENCODING: encoding: [0x8b,0x02,0x07,0x77]
9
10xvreplve0.h $xr13, $xr26
11# CHECK-INST: xvreplve0.h $xr13, $xr26
12# CHECK-ENCODING: encoding: [0x4d,0x83,0x07,0x77]
13
14xvreplve0.w $xr8, $xr12
15# CHECK-INST: xvreplve0.w $xr8, $xr12
16# CHECK-ENCODING: encoding: [0x88,0xc1,0x07,0x77]
17
18xvreplve0.d $xr20, $xr4
19# CHECK-INST: xvreplve0.d $xr20, $xr4
20# CHECK-ENCODING: encoding: [0x94,0xe0,0x07,0x77]
21
22xvreplve0.q $xr17, $xr20
23# CHECK-INST: xvreplve0.q $xr17, $xr20
24# CHECK-ENCODING: encoding: [0x91,0xf2,0x07,0x77]
25