brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · 8a497f0 Raw
43 lines · plain
1# RUN: llvm-mc -triple=riscv32 -show-encoding -mattr=+zvfbfmin %s \2# RUN:   | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3# RUN: not llvm-mc -triple=riscv32 -show-encoding -mattr=+v,+f %s 2>&1 \4# RUN:   | FileCheck %s --check-prefix=CHECK-ERROR5# RUN: llvm-mc -triple=riscv32 -filetype=obj -mattr=+zvfbfmin %s \6# RUN:    | llvm-objdump -d --mattr=+zvfbfmin - \7# RUN:    | FileCheck %s --check-prefix=CHECK-INST8# RUN: llvm-mc -triple=riscv32 -filetype=obj -mattr=+zvfbfmin %s \9# RUN:    | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN10# RUN: llvm-mc -triple=riscv64 -show-encoding -mattr=+zvfbfmin %s \11# RUN:   | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST12# RUN: not llvm-mc -triple=riscv64 -show-encoding -mattr=+v,+f %s 2>&1 \13# RUN:   | FileCheck %s --check-prefix=CHECK-ERROR14# RUN: llvm-mc -triple=riscv64 -filetype=obj -mattr=+zvfbfmin %s \15# RUN:    | llvm-objdump -d --mattr=+zvfbfmin - \16# RUN:    | FileCheck %s --check-prefix=CHECK-INST17# RUN: llvm-mc -triple=riscv64 -filetype=obj -mattr=+zvfbfmin %s \18# RUN:    | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN19 20# CHECK-INST: vfncvtbf16.f.f.w v8, v4, v0.t21# CHECK-ENCODING: [0x57,0x94,0x4e,0x48]22# CHECK-ERROR: instruction requires the following: 'Zvfbfmin' (Vector BF16 Converts) or 'Zvfofp8min' (Vector OFP8 Converts){{$}}23# CHECK-UNKNOWN: 484e9457 <unknown>24vfncvtbf16.f.f.w v8, v4, v0.t25 26# CHECK-INST: vfncvtbf16.f.f.w v8, v427# CHECK-ENCODING: [0x57,0x94,0x4e,0x4a]28# CHECK-ERROR: instruction requires the following: 'Zvfbfmin' (Vector BF16 Converts) or 'Zvfofp8min' (Vector OFP8 Converts){{$}}29# CHECK-UNKNOWN: 4a4e9457 <unknown>30vfncvtbf16.f.f.w v8, v431 32# CHECK-INST: vfwcvtbf16.f.f.v v8, v4, v0.t33# CHECK-ENCODING: [0x57,0x94,0x46,0x48]34# CHECK-ERROR: instruction requires the following: 'Zvfbfmin' (Vector BF16 Converts) or 'Zvfofp8min' (Vector OFP8 Converts){{$}}35# CHECK-UNKNOWN: 48469457 <unknown>36vfwcvtbf16.f.f.v v8, v4, v0.t37 38# CHECK-INST: vfwcvtbf16.f.f.v v8, v439# CHECK-ENCODING: [0x57,0x94,0x46,0x4a]40# CHECK-ERROR: instruction requires the following: 'Zvfbfmin' (Vector BF16 Converts) or 'Zvfofp8min' (Vector OFP8 Converts){{$}}41# CHECK-UNKNOWN: 4a469457 <unknown>42vfwcvtbf16.f.f.v v8, v443