Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / RISCV / rv32zhinxmin-valid.s
blobfbdbce06bc0ffb545703fd58a8433d5daf912f84
1 # RUN: llvm-mc %s -triple=riscv32 -mattr=+zhinxmin -riscv-no-aliases -show-encoding \
2 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
3 # RUN: llvm-mc %s -triple=riscv64 -mattr=+zhinxmin -riscv-no-aliases -show-encoding \
4 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
5 # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+zhinxmin %s \
6 # RUN: | llvm-objdump --mattr=+zhinxmin -M no-aliases -d -r - \
7 # RUN: | FileCheck -check-prefixes=CHECK-ASM-AND-OBJ %s
8 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+zhinxmin %s \
9 # RUN: | llvm-objdump --mattr=+zhinxmin -M no-aliases -d -r - \
10 # RUN: | FileCheck -check-prefixes=CHECK-ASM-AND-OBJ %s
12 # CHECK-ASM-AND-OBJ: fcvt.s.h a0, a1
13 # CHECK-ASM: encoding: [0x53,0x85,0x25,0x40]
14 fcvt.s.h a0, a1
15 # CHECK-ASM-AND-OBJ: fcvt.s.h a0, a1, rup
16 # CHECK-ASM: encoding: [0x53,0xb5,0x25,0x40]
17 fcvt.s.h a0, a1, rup
19 # CHECK-ASM-AND-OBJ: fcvt.h.s a0, a1, dyn
20 # CHECK-ASM: encoding: [0x53,0xf5,0x05,0x44]
21 fcvt.h.s a0, a1