brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.6 KiB · 2b00fcb Raw
58 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 11vfmin.vv v8, v4, v20, v0.t12# CHECK-INST: vfmin.vv v8, v4, v20, v0.t13# CHECK-ENCODING: [0x57,0x14,0x4a,0x10]14# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}15# CHECK-UNKNOWN: 104a1457 <unknown>16 17vfmin.vv v8, v4, v2018# CHECK-INST: vfmin.vv v8, v4, v2019# CHECK-ENCODING: [0x57,0x14,0x4a,0x12]20# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}21# CHECK-UNKNOWN: 124a1457 <unknown>22 23vfmin.vf v8, v4, fa0, v0.t24# CHECK-INST: vfmin.vf v8, v4, fa0, v0.t25# CHECK-ENCODING: [0x57,0x54,0x45,0x10]26# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}27# CHECK-UNKNOWN: 10455457 <unknown>28 29vfmin.vf v8, v4, fa030# CHECK-INST: vfmin.vf v8, v4, fa031# CHECK-ENCODING: [0x57,0x54,0x45,0x12]32# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}33# CHECK-UNKNOWN: 12455457 <unknown>34 35vfmax.vv v8, v4, v20, v0.t36# CHECK-INST: vfmax.vv v8, v4, v20, v0.t37# CHECK-ENCODING: [0x57,0x14,0x4a,0x18]38# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}39# CHECK-UNKNOWN: 184a1457 <unknown>40 41vfmax.vv v8, v4, v2042# CHECK-INST: vfmax.vv v8, v4, v2043# CHECK-ENCODING: [0x57,0x14,0x4a,0x1a]44# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}45# CHECK-UNKNOWN: 1a4a1457 <unknown>46 47vfmax.vf v8, v4, fa0, v0.t48# CHECK-INST: vfmax.vf v8, v4, fa0, v0.t49# CHECK-ENCODING: [0x57,0x54,0x45,0x18]50# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}51# CHECK-UNKNOWN: 18455457 <unknown>52 53vfmax.vf v8, v4, fa054# CHECK-INST: vfmax.vf v8, v4, fa055# CHECK-ENCODING: [0x57,0x54,0x45,0x1a]56# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}57# CHECK-UNKNOWN: 1a455457 <unknown>58