brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · faa0e29 Raw
22 lines · plain
1# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+v,+xsfvfwmaccqqq %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,+xsfvfwmaccqqq %s \6# RUN:        | llvm-objdump -d --mattr=+v,+xsfvfwmaccqqq - \7# RUN:        | FileCheck %s --check-prefix=CHECK-INST8# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+v,+xsfvfwmaccqqq %s \9# RUN:        | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN10 11sf.vfwmacc.4x4x4 v8, v4, v2012# CHECK-INST: sf.vfwmacc.4x4x4 v8, v4, v2013# CHECK-ENCODING: [0x5b,0x14,0x42,0xf3]14# CHECK-ERROR: instruction requires the following: 'XSfvfwmaccqqq' (SiFive Matrix Multiply Accumulate Instruction (4-by-4))15# CHECK-UNKNOWN: f342145b <unknown>16 17sf.vfwmacc.4x4x4 v0, v4, v2018# CHECK-INST: sf.vfwmacc.4x4x4 v0, v4, v2019# CHECK-ENCODING: [0x5b,0x10,0x42,0xf3]20# CHECK-ERROR: instruction requires the following: 'XSfvfwmaccqqq' (SiFive Matrix Multiply Accumulate Instruction (4-by-4))21# CHECK-UNKNOWN: f342105b <unknown>22