brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.9 KiB · 3bf1351 Raw
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 - \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 11vzext.vf2 v8, v4, v0.t12# CHECK-INST: vzext.vf2 v8, v4, v0.t13# CHECK-ENCODING: [0x57,0x24,0x43,0x48]14# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}15# CHECK-UNKNOWN: 48432457 <unknown>16 17vzext.vf2 v8, v418# CHECK-INST: vzext.vf2 v8, v419# CHECK-ENCODING: [0x57,0x24,0x43,0x4a]20# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}21# CHECK-UNKNOWN: 4a432457 <unknown>22 23vsext.vf2 v8, v4, v0.t24# CHECK-INST: vsext.vf2 v8, v4, v0.t25# CHECK-ENCODING: [0x57,0xa4,0x43,0x48]26# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}27# CHECK-UNKNOWN: 4843a457 <unknown>28 29vsext.vf2 v8, v430# CHECK-INST: vsext.vf2 v8, v431# CHECK-ENCODING: [0x57,0xa4,0x43,0x4a]32# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}33# CHECK-UNKNOWN: 4a43a457 <unknown>34 35vzext.vf4 v8, v4, v0.t36# CHECK-INST: vzext.vf4 v8, v4, v0.t37# CHECK-ENCODING: [0x57,0x24,0x42,0x48]38# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}39# CHECK-UNKNOWN: 48422457 <unknown>40 41vzext.vf4 v8, v442# CHECK-INST: vzext.vf4 v8, v443# CHECK-ENCODING: [0x57,0x24,0x42,0x4a]44# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}45# CHECK-UNKNOWN: 4a422457 <unknown>46 47vsext.vf4 v8, v4, v0.t48# CHECK-INST: vsext.vf4 v8, v4, v0.t49# CHECK-ENCODING: [0x57,0xa4,0x42,0x48]50# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}51# CHECK-UNKNOWN: 4842a457 <unknown>52 53vsext.vf4 v8, v454# CHECK-INST: vsext.vf4 v8, v455# CHECK-ENCODING: [0x57,0xa4,0x42,0x4a]56# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}57# CHECK-UNKNOWN: 4a42a457 <unknown>58 59vzext.vf8 v8, v4, v0.t60# CHECK-INST: vzext.vf8 v8, v4, v0.t61# CHECK-ENCODING: [0x57,0x24,0x41,0x48]62# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}63# CHECK-UNKNOWN: 48412457 <unknown>64 65vzext.vf8 v8, v466# CHECK-INST: vzext.vf8 v8, v467# CHECK-ENCODING: [0x57,0x24,0x41,0x4a]68# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}69# CHECK-UNKNOWN: 4a412457 <unknown>70 71vsext.vf8 v8, v4, v0.t72# CHECK-INST: vsext.vf8 v8, v4, v0.t73# CHECK-ENCODING: [0x57,0xa4,0x41,0x48]74# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}75# CHECK-UNKNOWN: 4841a457 <unknown>76 77vsext.vf8 v8, v478# CHECK-INST: vsext.vf8 v8, v479# CHECK-ENCODING: [0x57,0xa4,0x41,0x4a]80# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}81# CHECK-UNKNOWN: 4a41a457 <unknown>82