Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / RISCV / zicfilp-valid.s
blob22428d1e7539314d4208c13e86543da4cadd074d
1 # RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-zicfilp -riscv-no-aliases -show-encoding \
2 # RUN: | FileCheck -check-prefixes=CHECK-ASM %s
3 # RUN: llvm-mc %s -triple=riscv64 -mattr=+experimental-zicfilp -riscv-no-aliases -show-encoding \
4 # RUN: | FileCheck -check-prefixes=CHECK-ASM %s
5 # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+experimental-zicfilp < %s \
6 # RUN: | llvm-objdump --mattr=+experimental-zicfilp -d -r - \
7 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
8 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+experimental-zicfilp < %s \
9 # RUN: | llvm-objdump --mattr=+experimental-zicfilp -d -r - \
10 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
12 # RUN: not llvm-mc -triple riscv32 -riscv-no-aliases -show-encoding < %s 2>&1 \
13 # RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s
14 # RUN: not llvm-mc -triple riscv64 -riscv-no-aliases -show-encoding < %s 2>&1 \
15 # RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s
17 # CHECK-ASM-AND-OBJ: lpad 22
18 # CHECK-ASM: auipc zero, 22
19 # CHECK-ASM: encoding: [0x17,0x60,0x01,0x00]
20 # CHECK-NO-EXT: instruction requires the following: 'Zicfilp' (Landing pad)
21 lpad 22