brintos

brintos / llvm-project-archived public Read only

0
0
Text · 862 B · 317a103 Raw
16 lines · plain
1# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+xsfvfexpa %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=+xsfvfexpa %s \6# RUN:        | llvm-objdump -d --mattr=+xsfvfexpa - \7# RUN:        | FileCheck %s --check-prefix=CHECK-INST8# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+xsfvfexpa %s \9# RUN:        | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN10 11sf.vfexpa.v v2, v5, v0.t12# CHECK-INST: sf.vfexpa.v v2, v5, v0.t13# CHECK-ENCODING: [0x57,0x11,0x53,0x4c]14# CHECK-ERROR: instruction requires the following: 'Xsfvfexpa' (SiFive Vector Floating-Point Exponential Approximation Instruction){{$}}15# CHECK-UNKNOWN: 4c531157 <unknown>16