58 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 --no-print-imm-hex - \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 11vxor.vv v8, v4, v20, v0.t12# CHECK-INST: vxor.vv v8, v4, v20, v0.t13# CHECK-ENCODING: [0x57,0x04,0x4a,0x2c]14# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}15# CHECK-UNKNOWN: 2c4a0457 <unknown>16 17vxor.vv v8, v4, v2018# CHECK-INST: vxor.vv v8, v4, v2019# CHECK-ENCODING: [0x57,0x04,0x4a,0x2e]20# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}21# CHECK-UNKNOWN: 2e4a0457 <unknown>22 23vxor.vx v8, v4, a0, v0.t24# CHECK-INST: vxor.vx v8, v4, a0, v0.t25# CHECK-ENCODING: [0x57,0x44,0x45,0x2c]26# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}27# CHECK-UNKNOWN: 2c454457 <unknown>28 29vxor.vx v8, v4, a030# CHECK-INST: vxor.vx v8, v4, a031# CHECK-ENCODING: [0x57,0x44,0x45,0x2e]32# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}33# CHECK-UNKNOWN: 2e454457 <unknown>34 35vxor.vi v8, v4, 15, v0.t36# CHECK-INST: vxor.vi v8, v4, 15, v0.t37# CHECK-ENCODING: [0x57,0xb4,0x47,0x2c]38# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}39# CHECK-UNKNOWN: 2c47b457 <unknown>40 41vxor.vi v8, v4, 1542# CHECK-INST: vxor.vi v8, v4, 1543# CHECK-ENCODING: [0x57,0xb4,0x47,0x2e]44# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}45# CHECK-UNKNOWN: 2e47b457 <unknown>46 47vnot.v v8, v4, v0.t48# CHECK-INST: vnot.v v8, v4, v0.t49# CHECK-ENCODING: [0x57,0xb4,0x4f,0x2c]50# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}51# CHECK-UNKNOWN: 2c4fb457 <unknown>52 53vnot.v v8, v454# CHECK-INST: vnot.v v8, v455# CHECK-ENCODING: [0x57,0xb4,0x4f,0x2e]56# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}57# CHECK-UNKNOWN: 2e4fb457 <unknown>58