| 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 |
|
| 6 |
xvinsgr2vr.w $xr25, $r30, 7 |
| 7 |
# CHECK-INST: xvinsgr2vr.w $xr25, $s7, 7 |
| 8 |
# CHECK-ENCODING: encoding: [0xd9,0xdf,0xeb,0x76] |
| 9 |
|
| 10 |
xvinsgr2vr.d $xr27, $r21, 1 |
| 11 |
# CHECK-INST: xvinsgr2vr.d $xr27, $r21, 1 |
| 12 |
# CHECK-ENCODING: encoding: [0xbb,0xe6,0xeb,0x76] |