115 lines · plain
1# RUN: llvm-mc -triple=riscv32 -show-encoding --mattr=+xsmtvdot %s \2# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+xsmtvdot %s \4# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST5# RUN: not llvm-mc -triple=riscv32 -show-encoding %s 2>&1 \6# RUN: | FileCheck %s --check-prefix=CHECK-ERROR7# RUN: not llvm-mc -triple=riscv64 -show-encoding %s 2>&1 \8# RUN: | FileCheck %s --check-prefix=CHECK-ERROR9# RUN: llvm-mc -triple=riscv32 -filetype=obj --mattr=+xsmtvdot %s \10# RUN: | llvm-objdump -d --mattr=+xsmtvdot - \11# RUN: | FileCheck %s --check-prefix=CHECK-INST12# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+xsmtvdot %s \13# RUN: | llvm-objdump -d --mattr=+xsmtvdot - \14# RUN: | FileCheck %s --check-prefix=CHECK-INST15# RUN: llvm-mc -triple=riscv32 -filetype=obj --mattr=+xsmtvdot %s \16# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN17# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+xsmtvdot %s \18# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN19 20# CHECK-INST: smt.vmadot v16, v0, v821# CHECK-ENCODING: [0x2b,0x38,0x80,0xe2]22# CHECK-ERROR: instruction requires the following: 'XSMTVDot' (SpacemiT Vector Dot Product Extension){{$}}23# CHECK-UNKNOWN: e280382b <unknown>24smt.vmadot v16, v0, v825 26# CHECK-INST: smt.vmadotu v18, v1, v927# CHECK-ENCODING: [0x2b,0x89,0x90,0xe2]28# CHECK-ERROR: instruction requires the following: 'XSMTVDot' (SpacemiT Vector Dot Product Extension){{$}}29# CHECK-UNKNOWN: e290892b <unknown>30smt.vmadotu v18, v1, v931 32# CHECK-INST: smt.vmadotsu v20, v2, v1033# CHECK-ENCODING: [0x2b,0x2a,0xa1,0xe2]34# CHECK-ERROR: instruction requires the following: 'XSMTVDot' (SpacemiT Vector Dot Product Extension){{$}}35# CHECK-UNKNOWN: e2a12a2b <unknown>36smt.vmadotsu v20, v2, v1037 38# CHECK-INST: smt.vmadotus v22, v3, v1139# CHECK-ENCODING: [0x2b,0x9b,0xb1,0xe2]40# CHECK-ERROR: instruction requires the following: 'XSMTVDot' (SpacemiT Vector Dot Product Extension){{$}}41# CHECK-UNKNOWN: e2b19b2b <unknown>42smt.vmadotus v22, v3, v1143 44# CHECK-INST: smt.vmadot1 v24, v16, v1245# CHECK-ENCODING: [0x2b,0x3c,0xc8,0xe6]46# CHECK-ERROR: instruction requires the following: 'XSMTVDot' (SpacemiT Vector Dot Product Extension){{$}}47# CHECK-UNKNOWN: e6c83c2b <unknown>48smt.vmadot1 v24, v16, v1249 50# CHECK-INST: smt.vmadot1u v26, v18, v1351# CHECK-ENCODING: [0x2b,0x0d,0xd9,0xe6]52# CHECK-ERROR: instruction requires the following: 'XSMTVDot' (SpacemiT Vector Dot Product Extension){{$}}53# CHECK-UNKNOWN: e6d90d2b <unknown>54smt.vmadot1u v26, v18, v1355 56# CHECK-INST: smt.vmadot1su v28, v20, v1457# CHECK-ENCODING: [0x2b,0x2e,0xea,0xe6]58# CHECK-ERROR: instruction requires the following: 'XSMTVDot' (SpacemiT Vector Dot Product Extension){{$}}59# CHECK-UNKNOWN: e6ea2e2b <unknown>60smt.vmadot1su v28, v20, v1461 62# CHECK-INST: smt.vmadot1us v30, v22, v1563# CHECK-ENCODING: [0x2b,0x1f,0xfb,0xe6]64# CHECK-ERROR: instruction requires the following: 'XSMTVDot' (SpacemiT Vector Dot Product Extension){{$}}65# CHECK-UNKNOWN: e6fb1f2b <unknown>66smt.vmadot1us v30, v22, v1567 68# CHECK-INST: smt.vmadot2 v0, v24, v469# CHECK-ENCODING: [0x2b,0x70,0x4c,0xe6]70# CHECK-ERROR: instruction requires the following: 'XSMTVDot' (SpacemiT Vector Dot Product Extension){{$}}71# CHECK-UNKNOWN: e64c702b <unknown>72smt.vmadot2 v0, v24, v473 74# CHECK-INST: smt.vmadot2u v2, v26, v575# CHECK-ENCODING: [0x2b,0x41,0x5d,0xe6]76# CHECK-ERROR: instruction requires the following: 'XSMTVDot' (SpacemiT Vector Dot Product Extension){{$}}77# CHECK-UNKNOWN: e65d412b <unknown>78smt.vmadot2u v2, v26, v579 80# CHECK-INST: smt.vmadot2su v4, v28, v681# CHECK-ENCODING: [0x2b,0x62,0x6e,0xe6]82# CHECK-ERROR: instruction requires the following: 'XSMTVDot' (SpacemiT Vector Dot Product Extension){{$}}83# CHECK-UNKNOWN: e66e622b <unknown>84smt.vmadot2su v4, v28, v685 86# CHECK-INST: smt.vmadot2us v6, v30, v787# CHECK-ENCODING: [0x2b,0x53,0x7f,0xe6]88# CHECK-ERROR: instruction requires the following: 'XSMTVDot' (SpacemiT Vector Dot Product Extension){{$}}89# CHECK-UNKNOWN: e67f532b <unknown>90smt.vmadot2us v6, v30, v791 92# CHECK-INST: smt.vmadot3 v8, v0, v893# CHECK-ENCODING: [0x2b,0xb4,0x80,0xe6]94# CHECK-ERROR: instruction requires the following: 'XSMTVDot' (SpacemiT Vector Dot Product Extension){{$}}95# CHECK-UNKNOWN: e680b42b <unknown>96smt.vmadot3 v8, v0, v897 98# CHECK-INST: smt.vmadot3u v10, v2, v999# CHECK-ENCODING: [0x2b,0x85,0x91,0xe6]100# CHECK-ERROR: instruction requires the following: 'XSMTVDot' (SpacemiT Vector Dot Product Extension){{$}}101# CHECK-UNKNOWN: e691852b <unknown>102smt.vmadot3u v10, v2, v9103 104# CHECK-INST: smt.vmadot3su v12, v4, v10105# CHECK-ENCODING: [0x2b,0xa6,0xa2,0xe6]106# CHECK-ERROR: instruction requires the following: 'XSMTVDot' (SpacemiT Vector Dot Product Extension){{$}}107# CHECK-UNKNOWN: e6a2a62b <unknown>108smt.vmadot3su v12, v4, v10109 110# CHECK-INST: smt.vmadot3us v14, v6, v11111# CHECK-ENCODING: [0x2b,0x97,0xb3,0xe6]112# CHECK-ERROR: instruction requires the following: 'XSMTVDot' (SpacemiT Vector Dot Product Extension){{$}}113# CHECK-UNKNOWN: e6b3972b <unknown>114smt.vmadot3us v14, v6, v11115