106 lines · plain
1# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+v %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 %s \6# RUN: | llvm-objdump -d --mattr=+v - \7# RUN: | FileCheck %s --check-prefix=CHECK-INST8# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+v %s \9# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN10 11vminu.vv v8, v4, v20, v0.t12# CHECK-INST: vminu.vv v8, v4, v20, v0.t13# CHECK-ENCODING: [0x57,0x04,0x4a,0x10]14# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}15# CHECK-UNKNOWN: 104a0457 <unknown>16 17vminu.vv v8, v4, v2018# CHECK-INST: vminu.vv v8, v4, v2019# CHECK-ENCODING: [0x57,0x04,0x4a,0x12]20# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}21# CHECK-UNKNOWN: 124a0457 <unknown>22 23vminu.vx v8, v4, a0, v0.t24# CHECK-INST: vminu.vx v8, v4, a0, v0.t25# CHECK-ENCODING: [0x57,0x44,0x45,0x10]26# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}27# CHECK-UNKNOWN: 10454457 <unknown>28 29vminu.vx v8, v4, a030# CHECK-INST: vminu.vx v8, v4, a031# CHECK-ENCODING: [0x57,0x44,0x45,0x12]32# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}33# CHECK-UNKNOWN: 12454457 <unknown>34 35vmin.vv v8, v4, v20, v0.t36# CHECK-INST: vmin.vv v8, v4, v20, v0.t37# CHECK-ENCODING: [0x57,0x04,0x4a,0x14]38# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}39# CHECK-UNKNOWN: 144a0457 <unknown>40 41vmin.vv v8, v4, v2042# CHECK-INST: vmin.vv v8, v4, v2043# CHECK-ENCODING: [0x57,0x04,0x4a,0x16]44# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}45# CHECK-UNKNOWN: 164a0457 <unknown>46 47vmin.vx v8, v4, a0, v0.t48# CHECK-INST: vmin.vx v8, v4, a0, v0.t49# CHECK-ENCODING: [0x57,0x44,0x45,0x14]50# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}51# CHECK-UNKNOWN: 14454457 <unknown>52 53vmin.vx v8, v4, a054# CHECK-INST: vmin.vx v8, v4, a055# CHECK-ENCODING: [0x57,0x44,0x45,0x16]56# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}57# CHECK-UNKNOWN: 16454457 <unknown>58 59vmaxu.vv v8, v4, v20, v0.t60# CHECK-INST: vmaxu.vv v8, v4, v20, v0.t61# CHECK-ENCODING: [0x57,0x04,0x4a,0x18]62# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}63# CHECK-UNKNOWN: 184a0457 <unknown>64 65vmaxu.vv v8, v4, v2066# CHECK-INST: vmaxu.vv v8, v4, v2067# CHECK-ENCODING: [0x57,0x04,0x4a,0x1a]68# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}69# CHECK-UNKNOWN: 1a4a0457 <unknown>70 71vmaxu.vx v8, v4, a0, v0.t72# CHECK-INST: vmaxu.vx v8, v4, a0, v0.t73# CHECK-ENCODING: [0x57,0x44,0x45,0x18]74# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}75# CHECK-UNKNOWN: 18454457 <unknown>76 77vmaxu.vx v8, v4, a078# CHECK-INST: vmaxu.vx v8, v4, a079# CHECK-ENCODING: [0x57,0x44,0x45,0x1a]80# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}81# CHECK-UNKNOWN: 1a454457 <unknown>82 83vmax.vv v8, v4, v20, v0.t84# CHECK-INST: vmax.vv v8, v4, v20, v0.t85# CHECK-ENCODING: [0x57,0x04,0x4a,0x1c]86# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}87# CHECK-UNKNOWN: 1c4a0457 <unknown>88 89vmax.vv v8, v4, v2090# CHECK-INST: vmax.vv v8, v4, v2091# CHECK-ENCODING: [0x57,0x04,0x4a,0x1e]92# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}93# CHECK-UNKNOWN: 1e4a0457 <unknown>94 95vmax.vx v8, v4, a0, v0.t96# CHECK-INST: vmax.vx v8, v4, a0, v0.t97# CHECK-ENCODING: [0x57,0x44,0x45,0x1c]98# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}99# CHECK-UNKNOWN: 1c454457 <unknown>100 101vmax.vx v8, v4, a0102# CHECK-INST: vmax.vx v8, v4, a0103# CHECK-ENCODING: [0x57,0x44,0x45,0x1e]104# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}105# CHECK-UNKNOWN: 1e454457 <unknown>106