brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · 78d11ed Raw
46 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 11vfdiv.vv v8, v4, v20, v0.t12# CHECK-INST: vfdiv.vv v8, v4, v20, v0.t13# CHECK-ENCODING: [0x57,0x14,0x4a,0x80]14# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}15# CHECK-UNKNOWN: 804a1457 <unknown>16 17vfdiv.vv v8, v4, v2018# CHECK-INST: vfdiv.vv v8, v4, v2019# CHECK-ENCODING: [0x57,0x14,0x4a,0x82]20# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}21# CHECK-UNKNOWN: 824a1457 <unknown>22 23vfdiv.vf v8, v4, fa0, v0.t24# CHECK-INST: vfdiv.vf v8, v4, fa0, v0.t25# CHECK-ENCODING: [0x57,0x54,0x45,0x80]26# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}27# CHECK-UNKNOWN: 80455457 <unknown>28 29vfdiv.vf v8, v4, fa030# CHECK-INST: vfdiv.vf v8, v4, fa031# CHECK-ENCODING: [0x57,0x54,0x45,0x82]32# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}33# CHECK-UNKNOWN: 82455457 <unknown>34 35vfrdiv.vf v8, v4, fa0, v0.t36# CHECK-INST: vfrdiv.vf v8, v4, fa0, v0.t37# CHECK-ENCODING: [0x57,0x54,0x45,0x84]38# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}39# CHECK-UNKNOWN: 84455457 <unknown>40 41vfrdiv.vf v8, v4, fa042# CHECK-INST: vfrdiv.vf v8, v4, fa043# CHECK-ENCODING: [0x57,0x54,0x45,0x86]44# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}45# CHECK-UNKNOWN: 86455457 <unknown>46