25 lines · plain
1# RUN: llvm-mc --triple=loongarch64 --show-encoding %s | \2# RUN: FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3# RUN: llvm-mc --triple=loongarch64 --filetype=obj %s | \4# RUN: llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-INST5 6gcsrrd $a0, 17# CHECK-INST: gcsrrd $a0, 18# CHECK-ENCODING: encoding: [0x04,0x04,0x00,0x05]9 10gcsrwr $a0, 111# CHECK-INST: gcsrwr $a0, 112# CHECK-ENCODING: encoding: [0x24,0x04,0x00,0x05]13 14gcsrxchg $a0, $a1, 115# CHECK-INST: gcsrxchg $a0, $a1, 116# CHECK-ENCODING: encoding: [0xa4,0x04,0x00,0x05]17 18gtlbflush19# CHECK-INST: gtlbflush20# CHECK-ENCODING: encoding: [0x01,0x24,0x48,0x06]21 22hvcl 123# CHECK-INST: hvcl 124# CHECK-ENCODING: encoding: [0x01,0x80,0x2b,0x00]25