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 11vfmul.vv v8, v4, v20, v0.t12# CHECK-INST: vfmul.vv v8, v4, v20, v0.t13# CHECK-ENCODING: [0x57,0x14,0x4a,0x90]14# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}15# CHECK-UNKNOWN: 904a1457 <unknown>16 17vfmul.vv v8, v4, v2018# CHECK-INST: vfmul.vv v8, v4, v2019# CHECK-ENCODING: [0x57,0x14,0x4a,0x92]20# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}21# CHECK-UNKNOWN: 924a1457 <unknown>22 23vfmul.vf v8, v4, fa0, v0.t24# CHECK-INST: vfmul.vf v8, v4, fa0, v0.t25# CHECK-ENCODING: [0x57,0x54,0x45,0x90]26# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}27# CHECK-UNKNOWN: 90455457 <unknown>28 29vfmul.vf v8, v4, fa030# CHECK-INST: vfmul.vf v8, v4, fa031# CHECK-ENCODING: [0x57,0x54,0x45,0x92]32# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}33# CHECK-UNKNOWN: 92455457 <unknown>34 35vfwmul.vv v8, v4, v20, v0.t36# CHECK-INST: vfwmul.vv v8, v4, v20, v0.t37# CHECK-ENCODING: [0x57,0x14,0x4a,0xe0]38# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}39# CHECK-UNKNOWN: e04a1457 <unknown>40 41vfwmul.vv v8, v4, v2042# CHECK-INST: vfwmul.vv v8, v4, v2043# CHECK-ENCODING: [0x57,0x14,0x4a,0xe2]44# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}45# CHECK-UNKNOWN: e24a1457 <unknown>46 47vfwmul.vf v8, v4, fa0, v0.t48# CHECK-INST: vfwmul.vf v8, v4, fa0, v0.t49# CHECK-ENCODING: [0x57,0x54,0x45,0xe0]50# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}51# CHECK-UNKNOWN: e0455457 <unknown>52 53vfwmul.vf v8, v4, fa054# CHECK-INST: vfwmul.vf v8, v4, fa055# CHECK-ENCODING: [0x57,0x54,0x45,0xe2]56# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}57# CHECK-UNKNOWN: e2455457 <unknown>58