34 lines · plain
1# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+v,+xsfvfnrclipxfqf %s \2# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3# RUN: not llvm-mc -triple=riscv64 -show-encoding %s 2>&1 \4# RUN: | FileCheck %s --check-prefix=CHECK-ERROR5# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+v,+xsfvfnrclipxfqf %s \6# RUN: | llvm-objdump -d --mattr=+v,+xsfvfnrclipxfqf - \7# RUN: | FileCheck %s --check-prefix=CHECK-INST8# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+v,+xsfvfnrclipxfqf %s \9# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN10 11sf.vfnrclip.xu.f.qf v4, v8, fa212# CHECK-INST: sf.vfnrclip.xu.f.qf v4, v8, fa213# CHECK-ENCODING: [0x5b,0x52,0x86,0x8a]14# CHECK-ERROR: instruction requires the following: 'XSfvfnrclipxfqf' (SiFive FP32-to-int8 Ranged Clip Instructions)15# CHECK-UNKNOWN: 8a86525b <unknown>16 17sf.vfnrclip.xu.f.qf v4, v8, fa2, v0.t18# CHECK-INST: sf.vfnrclip.xu.f.qf v4, v8, fa219# CHECK-ENCODING: [0x5b,0x52,0x86,0x88]20# CHECK-ERROR: instruction requires the following: 'XSfvfnrclipxfqf' (SiFive FP32-to-int8 Ranged Clip Instructions)21# CHECK-UNKNOWN: 8886525b <unknown>22 23sf.vfnrclip.x.f.qf v4, v8, fa224# CHECK-INST: sf.vfnrclip.x.f.qf v4, v8, fa225# CHECK-ENCODING: [0x5b,0x52,0x86,0x8e]26# CHECK-ERROR: instruction requires the following: 'XSfvfnrclipxfqf' (SiFive FP32-to-int8 Ranged Clip Instructions)27# CHECK-UNKNOWN: 8e86525b <unknown>28 29sf.vfnrclip.x.f.qf v4, v8, fa2, v0.t30# CHECK-INST: sf.vfnrclip.x.f.qf v4, v8, fa231# CHECK-ENCODING: [0x5b,0x52,0x86,0x8c]32# CHECK-ERROR: instruction requires the following: 'XSfvfnrclipxfqf' (SiFive FP32-to-int8 Ranged Clip Instructions)33# CHECK-UNKNOWN: 8c86525b <unknown>34