xref: /llvm-project/llvm/test/MC/LoongArch/lasx/permi.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
6xvpermi.w $xr7, $xr12, 101
7# CHECK-INST: xvpermi.w $xr7, $xr12, 101
8# CHECK-ENCODING: encoding: [0x87,0x95,0xe5,0x77]
9
10xvpermi.d $xr17, $xr6, 131
11# CHECK-INST: xvpermi.d $xr17, $xr6, 131
12# CHECK-ENCODING: encoding: [0xd1,0x0c,0xea,0x77]
13
14xvpermi.q $xr10, $xr15, 184
15# CHECK-INST: xvpermi.q $xr10, $xr15, 184
16# CHECK-ENCODING: encoding: [0xea,0xe1,0xee,0x77]
17