brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.9 KiB · 30361b8 Raw
88 lines · plain
1# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+zve32f %s --M no-aliases \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 -M no-aliases - \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 11vfredosum.vs v8, v4, v20, v0.t12# CHECK-INST: vfredosum.vs v8, v4, v20, v0.t13# CHECK-ENCODING: [0x57,0x14,0x4a,0x0c]14# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}15# CHECK-UNKNOWN: 0c4a1457 <unknown>16 17vfredosum.vs v8, v4, v2018# CHECK-INST: vfredosum.vs v8, v4, v2019# CHECK-ENCODING: [0x57,0x14,0x4a,0x0e]20# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}21# CHECK-UNKNOWN: 0e4a1457 <unknown>22 23vfredusum.vs v8, v4, v20, v0.t24# CHECK-INST: vfredusum.vs v8, v4, v20, v0.t25# CHECK-ENCODING: [0x57,0x14,0x4a,0x04]26# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}27# CHECK-UNKNOWN: 044a1457 <unknown>28 29vfredusum.vs v8, v4, v2030# CHECK-INST: vfredusum.vs v8, v4, v2031# CHECK-ENCODING: [0x57,0x14,0x4a,0x06]32# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}33# CHECK-UNKNOWN: 064a1457 <unknown>34 35vfredmax.vs v8, v4, v20, v0.t36# CHECK-INST: vfredmax.vs v8, v4, v20, v0.t37# CHECK-ENCODING: [0x57,0x14,0x4a,0x1c]38# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}39# CHECK-UNKNOWN: 1c4a1457 <unknown>40 41vfredmax.vs v8, v4, v2042# CHECK-INST: vfredmax.vs v8, v4, v2043# CHECK-ENCODING: [0x57,0x14,0x4a,0x1e]44# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}45# CHECK-UNKNOWN: 1e4a1457 <unknown>46 47vfredmin.vs v8, v4, v20, v0.t48# CHECK-INST: vfredmin.vs v8, v4, v20, v0.t49# CHECK-ENCODING: [0x57,0x14,0x4a,0x14]50# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}51# CHECK-UNKNOWN: 144a1457 <unknown>52 53vfredmin.vs v8, v4, v2054# CHECK-INST: vfredmin.vs v8, v4, v2055# CHECK-ENCODING: [0x57,0x14,0x4a,0x16]56# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}57# CHECK-UNKNOWN: 164a1457 <unknown>58 59vfwredosum.vs v8, v4, v20, v0.t60# CHECK-INST: vfwredosum.vs v8, v4, v20, v0.t61# CHECK-ENCODING: [0x57,0x14,0x4a,0xcc]62# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}63# CHECK-UNKNOWN: cc4a1457 <unknown>64 65vfwredosum.vs v8, v4, v2066# CHECK-INST: vfwredosum.vs v8, v4, v2067# CHECK-ENCODING: [0x57,0x14,0x4a,0xce]68# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}69# CHECK-UNKNOWN: ce4a1457 <unknown>70 71vfwredusum.vs v8, v4, v20, v0.t72# CHECK-INST: vfwredusum.vs v8, v4, v20, v0.t73# CHECK-ENCODING: [0x57,0x14,0x4a,0xc4]74# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}75# CHECK-UNKNOWN: c44a1457 <unknown>76 77vfwredusum.vs v8, v4, v2078# CHECK-INST: vfwredusum.vs v8, v4, v2079# CHECK-ENCODING: [0x57,0x14,0x4a,0xc6]80# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}81# CHECK-UNKNOWN: c64a1457 <unknown>82 83vfredosum.vs v0, v4, v20, v0.t84# CHECK-INST: vfredosum.vs v0, v4, v20, v0.t85# CHECK-ENCODING: [0x57,0x10,0x4a,0x0c]86# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}87# CHECK-UNKNOWN: 0c4a1057 <unknown>88