brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 3558467 Raw
28 lines · plain
1# XAndesVBFHCvt - Andes Vector BFLOAT16 Conversion Extension2# RUN: llvm-mc %s -triple=riscv32 -mattr=+xandesvbfhcvt -show-encoding \3# RUN:     | FileCheck -check-prefixes=CHECK-ASM %s4# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+xandesvbfhcvt < %s \5# RUN:     | llvm-objdump --mattr=+xandesvbfhcvt -M no-aliases -d -r - \6# RUN:     | FileCheck -check-prefixes=CHECK-OBJ %s7# RUN: not llvm-mc -triple=riscv32 -show-encoding %s 2>&1 \8# RUN:        | FileCheck %s --check-prefix=CHECK-ERROR9# RUN: llvm-mc %s -triple=riscv64 -mattr=+xandesvbfhcvt -show-encoding \10# RUN:     | FileCheck -check-prefixes=CHECK-ASM %s11# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+xandesvbfhcvt < %s \12# RUN:     | llvm-objdump --mattr=+xandesvbfhcvt -M no-aliases -d -r - \13# RUN:     | FileCheck -check-prefixes=CHECK-OBJ %s14# RUN: not llvm-mc -triple=riscv64 -show-encoding %s 2>&1 \15# RUN:        | FileCheck %s --check-prefix=CHECK-ERROR16 17# CHECK-OBJ: nds.vfwcvt.s.bf16 v8, v1018# CHECK-ASM: nds.vfwcvt.s.bf16 v8, v1019# CHECK-ASM: encoding: [0x5b,0x44,0xa0,0x00]20# CHECK-ERROR: instruction requires the following: 'XAndesVBFHCvt' (Andes Vector BFLOAT16 Conversion Extension){{$}}21nds.vfwcvt.s.bf16 v8, v1022 23# CHECK-OBJ: nds.vfncvt.bf16.s v8, v1024# CHECK-ASM: nds.vfncvt.bf16.s v8, v1025# CHECK-ASM: encoding: [0x5b,0xc4,0xa0,0x00]26# CHECK-ERROR: instruction requires the following: 'XAndesVBFHCvt' (Andes Vector BFLOAT16 Conversion Extension){{$}}27nds.vfncvt.bf16.s v8, v1028