1 # RUN: llvm-mc %s -triple=riscv64 -mattr=+zdinx -M no-aliases -show-encoding \
2 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
3 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+zdinx %s \
4 # RUN: | llvm-objdump --mattr=+zdinx -M no-aliases -d -r - \
5 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
7 # RUN: not llvm-mc -triple riscv32 -mattr=+zdinx %s 2>&1 \
8 # RUN: | FileCheck -check-prefix=CHECK-RV32 %s
10 # CHECK-ASM-AND-OBJ: fcvt.l.d a0, t0, dyn
11 # CHECK-ASM: encoding: [0x53,0xf5,0x22,0xc2]
12 # CHECK-RV32: :[[#@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set
14 # CHECK-ASM-AND-OBJ: fcvt.lu.d a1, t1, dyn
15 # CHECK-ASM: encoding: [0xd3,0x75,0x33,0xc2]
16 # CHECK-RV32: :[[#@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set
18 # CHECK-ASM-AND-OBJ: fcvt.d.l t3, a3, dyn
19 # CHECK-ASM: encoding: [0x53,0xfe,0x26,0xd2]
20 # CHECK-RV32: :[[#@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set
22 # CHECK-ASM-AND-OBJ: fcvt.d.lu t4, a4, dyn
23 # CHECK-ASM: encoding: [0xd3,0x7e,0x37,0xd2]
24 # CHECK-RV32: :[[#@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set
28 # CHECK-ASM-AND-OBJ: fcvt.d.l t3, a3, rne
29 # CHECK-ASM: encoding: [0x53,0x8e,0x26,0xd2]
30 # CHECK-RV32: :[[#@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set
32 # CHECK-ASM-AND-OBJ: fcvt.d.lu t4, a4, rtz
33 # CHECK-ASM: encoding: [0xd3,0x1e,0x37,0xd2]
34 # CHECK-RV32: :[[#@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set
36 # CHECK-ASM-AND-OBJ: fcvt.l.d a0, t0, rdn
37 # CHECK-ASM: encoding: [0x53,0xa5,0x22,0xc2]
38 # CHECK-RV32: :[[#@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set
40 # CHECK-ASM-AND-OBJ: fcvt.lu.d a1, t1, rup
41 # CHECK-ASM: encoding: [0xd3,0x35,0x33,0xc2]
42 # CHECK-RV32: :[[#@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set