| 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 |
setx86j $a0, 1 |
| 7 |
# CHECK-INST: setx86j $a0, 1 |
| 8 |
# CHECK-ENCODING: encoding: [0x04,0x84,0x36,0x00] |
| 9 |
|
| 10 |
setx86loope $a0, $a1 |
| 11 |
# CHECK-INST: setx86loope $a0, $a1 |
| 12 |
# CHECK-ENCODING: encoding: [0xa4,0x78,0x00,0x00] |
| 13 |
|
| 14 |
setx86loopne $a0, $a1 |
| 15 |
# CHECK-INST: setx86loopne $a0, $a1 |
| 16 |
# CHECK-ENCODING: encoding: [0xa4,0x7c,0x00,0x00] |