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
7 # CHECK-INST: gcsrrd $a0, 1
8 # CHECK-ENCODING: encoding: [0x04,0x04,0x00,0x05]
11 # CHECK-INST: gcsrwr $a0, 1
12 # CHECK-ENCODING: encoding: [0x24,0x04,0x00,0x05]
15 # CHECK-INST: gcsrxchg $a0, $a1, 1
16 # CHECK-ENCODING: encoding: [0xa4,0x04,0x00,0x05]
19 # CHECK-INST: gtlbflush
20 # CHECK-ENCODING: encoding: [0x01,0x24,0x48,0x06]
24 # CHECK-ENCODING: encoding: [0x01,0x80,0x2b,0x00]