brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 749fdcc Raw
28 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 11vfmv.v.f v8, fa012# CHECK-INST: vfmv.v.f v8, fa013# CHECK-ENCODING: [0x57,0x54,0x05,0x5e]14# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}15# CHECK-UNKNOWN: 5e055457 <unknown>16 17vfmv.f.s fa0, v418# CHECK-INST: vfmv.f.s fa0, v419# CHECK-ENCODING: [0x57,0x15,0x40,0x42]20# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}21# CHECK-UNKNOWN: 42401557 <unknown>22 23vfmv.s.f v8, fa024# CHECK-INST: vfmv.s.f v8, fa025# CHECK-ENCODING: [0x57,0x54,0x05,0x42]26# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}27# CHECK-UNKNOWN: 42055457 <unknown>28