82 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 11vnclipu.wv v8, v4, v20, v0.t12# CHECK-INST: vnclipu.wv v8, v4, v20, v0.t13# CHECK-ENCODING: [0x57,0x04,0x4a,0xb8]14# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}15# CHECK-UNKNOWN: b84a0457 <unknown>16 17vnclipu.wv v8, v4, v2018# CHECK-INST: vnclipu.wv v8, v4, v2019# CHECK-ENCODING: [0x57,0x04,0x4a,0xba]20# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}21# CHECK-UNKNOWN: ba4a0457 <unknown>22 23vnclipu.wx v8, v4, a0, v0.t24# CHECK-INST: vnclipu.wx v8, v4, a0, v0.t25# CHECK-ENCODING: [0x57,0x44,0x45,0xb8]26# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}27# CHECK-UNKNOWN: b8454457 <unknown>28 29vnclipu.wx v8, v4, a030# CHECK-INST: vnclipu.wx v8, v4, a031# CHECK-ENCODING: [0x57,0x44,0x45,0xba]32# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}33# CHECK-UNKNOWN: ba454457 <unknown>34 35vnclipu.wi v8, v4, 31, v0.t36# CHECK-INST: vnclipu.wi v8, v4, 31, v0.t37# CHECK-ENCODING: [0x57,0xb4,0x4f,0xb8]38# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}39# CHECK-UNKNOWN: b84fb457 <unknown>40 41vnclipu.wi v8, v4, 3142# CHECK-INST: vnclipu.wi v8, v4, 3143# CHECK-ENCODING: [0x57,0xb4,0x4f,0xba]44# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}45# CHECK-UNKNOWN: ba4fb457 <unknown>46 47vnclip.wv v8, v4, v20, v0.t48# CHECK-INST: vnclip.wv v8, v4, v20, v0.t49# CHECK-ENCODING: [0x57,0x04,0x4a,0xbc]50# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}51# CHECK-UNKNOWN: bc4a0457 <unknown>52 53vnclip.wv v8, v4, v2054# CHECK-INST: vnclip.wv v8, v4, v2055# CHECK-ENCODING: [0x57,0x04,0x4a,0xbe]56# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}57# CHECK-UNKNOWN: be4a0457 <unknown>58 59vnclip.wx v8, v4, a0, v0.t60# CHECK-INST: vnclip.wx v8, v4, a0, v0.t61# CHECK-ENCODING: [0x57,0x44,0x45,0xbc]62# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}63# CHECK-UNKNOWN: bc454457 <unknown>64 65vnclip.wx v8, v4, a066# CHECK-INST: vnclip.wx v8, v4, a067# CHECK-ENCODING: [0x57,0x44,0x45,0xbe]68# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}69# CHECK-UNKNOWN: be454457 <unknown>70 71vnclip.wi v8, v4, 31, v0.t72# CHECK-INST: vnclip.wi v8, v4, 31, v0.t73# CHECK-ENCODING: [0x57,0xb4,0x4f,0xbc]74# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}75# CHECK-UNKNOWN: bc4fb457 <unknown>76 77vnclip.wi v8, v4, 3178# CHECK-INST: vnclip.wi v8, v4, 3179# CHECK-ENCODING: [0x57,0xb4,0x4f,0xbe]80# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}81# CHECK-UNKNOWN: be4fb457 <unknown>82