34 lines · plain
1# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+experimental-zvfbfa %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=+experimental-zvfbfa %s \6# RUN: | llvm-objdump -d --mattr=+experimental-zvfbfa --no-print-imm-hex - \7# RUN: | FileCheck %s --check-prefix=CHECK-INST8# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+experimental-zvfbfa %s \9# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN10 11vsetvli a2, a0, e8alt, m1, ta, ma12# CHECK-INST: vsetvli a2, a0, e8alt, m1, ta, ma13# CHECK-ENCODING: [0x57,0x76,0x05,0x1c]14# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}15# CHECK-UNKNOWN: 1c057657 <unknown>16 17vsetvli a2, a0, e16alt, m1, ta, ma18# CHECK-INST: vsetvli a2, a0, e16alt, m1, ta, ma19# CHECK-ENCODING: [0x57,0x76,0x85,0x1c]20# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}21# CHECK-UNKNOWN: 1c857657 <unknown>22 23vsetivli a2, 0, e8alt, m1, ta, ma24# CHECK-INST: vsetivli a2, 0, e8alt, m1, ta, ma25# CHECK-ENCODING: [0x57,0x76,0x00,0xdc]26# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}27# CHECK-UNKNOWN: dc007657 <unknown>28 29vsetivli a2, 0, e16alt, m1, ta, ma30# CHECK-INST: vsetivli a2, 0, e16alt, m1, ta, ma31# CHECK-ENCODING: [0x57,0x76,0x80,0xdc]32# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}33# CHECK-UNKNOWN: dc807657 <unknown>34