1 # RUN: not llvm-mc -triple riscv32 -mattr=+zfa,+d \
2 # RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \
3 # RUN: | FileCheck -check-prefixes=CHECK-NO-EXTZFH %s
4 # RUN: not llvm-mc -triple riscv64 -mattr=+zfa,+d \
5 # RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \
6 # RUN: | FileCheck -check-prefixes=CHECK-NO-EXTZFH %s
8 # CHECK-NO-EXTZFH: error: instruction requires the following: 'Zfh' (Half-Precision Floating-Point){{$}}
11 # CHECK-NO-EXTZFH: error: instruction requires the following: 'Zfh' (Half-Precision Floating-Point){{$}}
14 # CHECK-NO-EXTZFH: error: instruction requires the following: 'Zfh' (Half-Precision Floating-Point){{$}}
17 # CHECK-NO-EXTZFH: error: instruction requires the following: 'Zfh' (Half-Precision Floating-Point){{$}}
18 fround.h fs1
, fs2
, dyn
20 # CHECK-NO-EXTZFH: error: instruction requires the following: 'Zfh' (Half-Precision Floating-Point){{$}}
21 fround.h fs1
, fs2
, rtz
23 # CHECK-NO-EXTZFH: error: instruction requires the following: 'Zfh' (Half-Precision Floating-Point){{$}}
24 fround.h fs1
, fs2
, rne
26 # CHECK-NO-EXTZFH: error: instruction requires the following: 'Zfh' (Half-Precision Floating-Point){{$}}
29 # CHECK-NO-EXTZFH: error: instruction requires the following: 'Zfh' (Half-Precision Floating-Point){{$}}
30 froundnx.h fs1
, fs2
, dyn
32 # CHECK-NO-EXTZFH: error: instruction requires the following: 'Zfh' (Half-Precision Floating-Point){{$}}
33 froundnx.h fs1
, fs2
, rtz
35 # CHECK-NO-EXTZFH: error: instruction requires the following: 'Zfh' (Half-Precision Floating-Point){{$}}
36 froundnx.h fs1
, fs2
, rne
38 # CHECK-NO-EXTZFH: error: instruction requires the following: 'Zfh' (Half-Precision Floating-Point){{$}}
41 # CHECK-NO-EXTZFH: error: instruction requires the following: 'Zfh' (Half-Precision Floating-Point){{$}}