Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / LoongArch / lvz / lvz.s
blob3727b2afe93a01da43ebc72357e95f05c2ee3a18
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
6 gcsrrd $a0, 1
7 # CHECK-INST: gcsrrd $a0, 1
8 # CHECK-ENCODING: encoding: [0x04,0x04,0x00,0x05]
10 gcsrwr $a0, 1
11 # CHECK-INST: gcsrwr $a0, 1
12 # CHECK-ENCODING: encoding: [0x24,0x04,0x00,0x05]
14 gcsrxchg $a0, $a1, 1
15 # CHECK-INST: gcsrxchg $a0, $a1, 1
16 # CHECK-ENCODING: encoding: [0xa4,0x04,0x00,0x05]
18 gtlbflush
19 # CHECK-INST: gtlbflush
20 # CHECK-ENCODING: encoding: [0x01,0x24,0x48,0x06]
22 hvcl 1
23 # CHECK-INST: hvcl 1
24 # CHECK-ENCODING: encoding: [0x01,0x80,0x2b,0x00]