30 lines · plain
1# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+xsfvfexp32e %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=+xsfvfexp32e %s \6# RUN: | llvm-objdump -d --mattr=+xsfvfexp32e - \7# RUN: | FileCheck %s --check-prefix=CHECK-INST8# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+xsfvfexp32e %s \9# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN10# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+xsfvfexp16e %s \11# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST12# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+xsfvfexp16e %s \13# RUN: | llvm-objdump -d --mattr=+xsfvfexp16e - \14# RUN: | FileCheck %s --check-prefix=CHECK-INST15# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+xsfvfexp16e %s \16# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN17# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+zvfbfmin,+xsfvfbfexp16e %s \18# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST19# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+zvfbfmin,+xsfvfbfexp16e %s \20# RUN: | llvm-objdump -d --mattr=+xsfvfbfexp16e - \21# RUN: | FileCheck %s --check-prefix=CHECK-INST22# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+zvfbfmin,+xsfvfbfexp16e %s \23# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN24 25sf.vfexp.v v2, v5, v0.t26# CHECK-INST: sf.vfexp.v v2, v5, v0.t27# CHECK-ENCODING: [0x57,0x91,0x53,0x4c]28# CHECK-ERROR: instruction requires the following: 'Xsfvfbfexp16e', 'Xsfvfexp16e', or 'Xsfvfexp32e' (SiFive Vector Floating-Point Exponential Function Instruction){{$}}29# CHECK-UNKNOWN: 4c539157 <unknown>30