brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.6 KiB · e472780 Raw
82 lines · plain
1# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+zve32f %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=+zve32f %s \6# RUN:     | llvm-objdump -d --mattr=+zve32f - \7# RUN:     | FileCheck %s --check-prefix=CHECK-INST8# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+zve32f %s \9# RUN:     | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN10 11vfadd.vv v8, v4, v20, v0.t12# CHECK-INST: vfadd.vv v8, v4, v20, v0.t13# CHECK-ENCODING: [0x57,0x14,0x4a,0x00]14# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}15# CHECK-UNKNOWN: 004a1457 <unknown>16 17vfadd.vv v8, v4, v2018# CHECK-INST: vfadd.vv v8, v4, v2019# CHECK-ENCODING: [0x57,0x14,0x4a,0x02]20# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}21# CHECK-UNKNOWN: 024a1457 <unknown>22 23vfadd.vf v8, v4, fa0, v0.t24# CHECK-INST: vfadd.vf v8, v4, fa0, v0.t25# CHECK-ENCODING: [0x57,0x54,0x45,0x00]26# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}27# CHECK-UNKNOWN: 00455457 <unknown>28 29vfadd.vf v8, v4, fa030# CHECK-INST: vfadd.vf v8, v4, fa031# CHECK-ENCODING: [0x57,0x54,0x45,0x02]32# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}33# CHECK-UNKNOWN: 02455457 <unknown>34 35vfwadd.vv v8, v4, v20, v0.t36# CHECK-INST: vfwadd.vv v8, v4, v20, v0.t37# CHECK-ENCODING: [0x57,0x14,0x4a,0xc0]38# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}39# CHECK-UNKNOWN: c04a1457 <unknown>40 41vfwadd.vv v8, v4, v2042# CHECK-INST: vfwadd.vv v8, v4, v2043# CHECK-ENCODING: [0x57,0x14,0x4a,0xc2]44# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}45# CHECK-UNKNOWN: c24a1457 <unknown>46 47vfwadd.vf v8, v4, fa0, v0.t48# CHECK-INST: vfwadd.vf v8, v4, fa0, v0.t49# CHECK-ENCODING: [0x57,0x54,0x45,0xc0]50# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}51# CHECK-UNKNOWN: c0455457 <unknown>52 53vfwadd.vf v8, v4, fa054# CHECK-INST: vfwadd.vf v8, v4, fa055# CHECK-ENCODING: [0x57,0x54,0x45,0xc2]56# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}57# CHECK-UNKNOWN: c2455457 <unknown>58 59vfwadd.wv v8, v4, v20, v0.t60# CHECK-INST: vfwadd.wv v8, v4, v20, v0.t61# CHECK-ENCODING: [0x57,0x14,0x4a,0xd0]62# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}63# CHECK-UNKNOWN: d04a1457 <unknown>64 65vfwadd.wv v8, v4, v2066# CHECK-INST: vfwadd.wv v8, v4, v2067# CHECK-ENCODING: [0x57,0x14,0x4a,0xd2]68# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}69# CHECK-UNKNOWN: d24a1457 <unknown>70 71vfwadd.wf v8, v4, fa0, v0.t72# CHECK-INST: vfwadd.wf v8, v4, fa0, v0.t73# CHECK-ENCODING: [0x57,0x54,0x45,0xd0]74# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}75# CHECK-UNKNOWN: d0455457 <unknown>76 77vfwadd.wf v8, v4, fa078# CHECK-INST: vfwadd.wf v8, v4, fa079# CHECK-ENCODING: [0x57,0x54,0x45,0xd2]80# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}81# CHECK-UNKNOWN: d2455457 <unknown>82