xref: /llvm-project/llvm/test/MC/LoongArch/lasx/clo.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
6xvclo.b $xr9, $xr12
7# CHECK-INST: xvclo.b $xr9, $xr12
8# CHECK-ENCODING: encoding: [0x89,0x01,0x9c,0x76]
9
10xvclo.h $xr16, $xr14
11# CHECK-INST: xvclo.h $xr16, $xr14
12# CHECK-ENCODING: encoding: [0xd0,0x05,0x9c,0x76]
13
14xvclo.w $xr30, $xr18
15# CHECK-INST: xvclo.w $xr30, $xr18
16# CHECK-ENCODING: encoding: [0x5e,0x0a,0x9c,0x76]
17
18xvclo.d $xr31, $xr5
19# CHECK-INST: xvclo.d $xr31, $xr5
20# CHECK-ENCODING: encoding: [0xbf,0x0c,0x9c,0x76]
21