brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.1 KiB · d7d3cba Raw
64 lines · plain
1# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+v,+xsfvqmaccqoq,+xsfvqmaccdod %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,+xsfvqmaccqoq,+xsfvqmaccdod %s \6# RUN:        | llvm-objdump -d --mattr=+v,+xsfvqmaccqoq,+xsfvqmaccdod - \7# RUN:        | FileCheck %s --check-prefix=CHECK-INST8# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+v,+xsfvqmaccqoq,+xsfvqmaccdod %s \9# RUN:        | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN10 11sf.vqmaccu.2x8x2 v8, v4, v2012# CHECK-INST: sf.vqmaccu.2x8x2 v8, v4, v2013# CHECK-ENCODING: [0x5b,0x24,0x42,0xb3]14# CHECK-ERROR: instruction requires the following: 'XSfvqmaccdod' (SiFive Int8 Matrix Multiplication Instructions (2-by-8 and 8-by-2))15# CHECK-UNKNOWN: b342245b <unknown>16 17sf.vqmacc.2x8x2 v8, v4, v2018# CHECK-INST: sf.vqmacc.2x8x2 v8, v4, v2019# CHECK-ENCODING: [0x5b,0x24,0x42,0xb7]20# CHECK-ERROR: instruction requires the following: 'XSfvqmaccdod' (SiFive Int8 Matrix Multiplication Instructions (2-by-8 and 8-by-2))21# CHECK-UNKNOWN: b742245b <unknown>22 23sf.vqmaccus.2x8x2 v8, v4, v2024# CHECK-INST: sf.vqmaccus.2x8x2 v8, v4, v2025# CHECK-ENCODING: [0x5b,0x24,0x42,0xbb]26# CHECK-ERROR: instruction requires the following: 'XSfvqmaccdod' (SiFive Int8 Matrix Multiplication Instructions (2-by-8 and 8-by-2))27# CHECK-UNKNOWN: bb42245b <unknown>28 29sf.vqmaccsu.2x8x2 v8, v4, v2030# CHECK-INST: sf.vqmaccsu.2x8x2 v8, v4, v2031# CHECK-ENCODING: [0x5b,0x24,0x42,0xbf]32# CHECK-ERROR: instruction requires the following: 'XSfvqmaccdod' (SiFive Int8 Matrix Multiplication Instructions (2-by-8 and 8-by-2))33# CHECK-UNKNOWN: bf42245b <unknown>34 35sf.vqmaccu.4x8x4 v8, v4, v2036# CHECK-INST: sf.vqmaccu.4x8x4 v8, v4, v2037# CHECK-ENCODING: [0x5b,0x24,0x42,0xf3]38# CHECK-ERROR: instruction requires the following: 'XSfvqmaccqoq' (SiFive Int8 Matrix Multiplication Instructions (4-by-8 and 8-by-4))39# CHECK-UNKNOWN: f342245b <unknown>40 41sf.vqmacc.4x8x4 v8, v4, v2042# CHECK-INST: sf.vqmacc.4x8x4 v8, v4, v2043# CHECK-ENCODING: [0x5b,0x24,0x42,0xf7]44# CHECK-ERROR: instruction requires the following: 'XSfvqmaccqoq' (SiFive Int8 Matrix Multiplication Instructions (4-by-8 and 8-by-4))45# CHECK-UNKNOWN: f742245b <unknown>46 47sf.vqmaccus.4x8x4 v8, v4, v2048# CHECK-INST: sf.vqmaccus.4x8x4 v8, v4, v2049# CHECK-ENCODING: [0x5b,0x24,0x42,0xfb]50# CHECK-ERROR: instruction requires the following: 'XSfvqmaccqoq' (SiFive Int8 Matrix Multiplication Instructions (4-by-8 and 8-by-4))51# CHECK-UNKNOWN: fb42245b <unknown>52 53sf.vqmaccsu.4x8x4 v8, v4, v2054# CHECK-INST: sf.vqmaccsu.4x8x4 v8, v4, v2055# CHECK-ENCODING: [0x5b,0x24,0x42,0xff]56# CHECK-ERROR: instruction requires the following: 'XSfvqmaccqoq' (SiFive Int8 Matrix Multiplication Instructions (4-by-8 and 8-by-4))57# CHECK-UNKNOWN: ff42245b <unknown>58 59sf.vqmaccu.4x8x4 v0, v4, v2060# CHECK-INST: sf.vqmaccu.4x8x4 v0, v4, v2061# CHECK-ENCODING: [0x5b,0x20,0x42,0xf3]62# CHECK-ERROR: instruction requires the following: 'XSfvqmaccqoq' (SiFive Int8 Matrix Multiplication Instructions (4-by-8 and 8-by-4))63# CHECK-UNKNOWN: f342205b <unknown>64