xref: /llvm-project/llvm/test/MC/LoongArch/lsx/replve.s (revision 12d2acdf4acc4c31e9ff483685d766b1f4f22b4e)
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
6vreplve.b $vr10, $vr31, $r20
7# CHECK-INST: vreplve.b $vr10, $vr31, $t8
8# CHECK-ENCODING: encoding: [0xea,0x53,0x22,0x71]
9
10vreplve.h $vr8, $vr3, $r30
11# CHECK-INST: vreplve.h $vr8, $vr3, $s7
12# CHECK-ENCODING: encoding: [0x68,0xf8,0x22,0x71]
13
14vreplve.w $vr5, $vr1, $r20
15# CHECK-INST: vreplve.w $vr5, $vr1, $t8
16# CHECK-ENCODING: encoding: [0x25,0x50,0x23,0x71]
17
18vreplve.d $vr11, $vr15, $r30
19# CHECK-INST: vreplve.d $vr11, $vr15, $s7
20# CHECK-ENCODING: encoding: [0xeb,0xf9,0x23,0x71]
21