| 1 |
# RUN: llvm-exegesis -mtriple=riscv64 -mcpu=sifive-x280 -benchmark-phase=assemble-measured-code --mode=latency --opcode-name=PseudoVMUL_VV_MF4_MASK \ |
| 2 |
# RUN: --max-configs-per-opcode=1000 --min-instructions=100 | FileCheck %s --check-prefix=FRAC-LMUL |
| 3 |
# RUN: llvm-exegesis -mtriple=riscv64 -mcpu=sifive-x280 -benchmark-phase=assemble-measured-code --mode=latency \ |
| 4 |
# RUN: --opcode-name=PseudoVFADD_VFPR16_M1_E16,PseudoVFADD_VV_M2_E16,PseudoVFCLASS_V_MF2 --max-configs-per-opcode=1000 --min-instructions=100 | \ |
| 5 |
# RUN: FileCheck %s --check-prefix=FP |
| 6 |
# RUN: llvm-exegesis -mtriple=riscv64 -mcpu=sifive-x280 -benchmark-phase=assemble-measured-code --mode=inverse_throughput \ |
| 7 |
# RUN: --opcode-name=PseudoVSEXT_VF8_M2,PseudoVZEXT_VF8_M2 --max-configs-per-opcode=1000 --min-instructions=100 | \ |
| 8 |
# RUN: FileCheck %s --check-prefix=VEXT |
| 9 |
# RUN: llvm-exegesis -mtriple=riscv64 -mcpu=sifive-p470 -benchmark-phase=assemble-measured-code --mode=latency \ |
| 10 |
# RUN: --opcode-name=PseudoVFREDUSUM_VS_M1_E16 --max-configs-per-opcode=1000 --min-instructions=100 | \ |
| 11 |
# RUN: FileCheck %s --check-prefix=VFRED --allow-empty |
| 12 |
# UNSUPPORTED: expensive_checks |
| 13 |
|
| 14 |
# Make sure only the supported SEWs are generated for fractional LMUL. |
| 15 |
# FRAC-LMUL: PseudoVMUL_VV_MF4_MASK |
| 16 |
# FRAC-LMUL: SEW: e8 |
| 17 |
# FRAC-LMUL: SEW: e16 |
| 18 |
# FRAC-LMUL-NOT: SEW: e{{(32|64)}} |
| 19 |
|
| 20 |
# Make sure only SEWs that are equal to the supported FLEN are generated |
| 21 |
# FP: PseudoVFADD_VFPR16_M1_E16 |
| 22 |
# FP-NOT: SEW: e8 |
| 23 |
# FP: PseudoVFADD_VV_M2_E16 |
| 24 |
# FP-NOT: SEW: e8 |
| 25 |
# FP: PseudoVFCLASS_V_MF2 |
| 26 |
# FP-NOT: SEW: e8 |
| 27 |
|
| 28 |
# VS/ZEXT can only operate on SEW that will not lead to invalid EEW on the |
| 29 |
# source operand. |
| 30 |
# VEXT: PseudoVSEXT_VF8_M2 |
| 31 |
# VEXT-NOT: SEW: e8 |
| 32 |
# VEXT-NOT: SEW: e16 |
| 33 |
# VEXT-NOT: SEW: e32 |
| 34 |
# VEXT: SEW: e64 |
| 35 |
# VEXT: PseudoVZEXT_VF8_M2 |
| 36 |
# VEXT-NOT: SEW: e8 |
| 37 |
# VEXT-NOT: SEW: e16 |
| 38 |
# VEXT-NOT: SEW: e32 |
| 39 |
# VEXT: SEW: e64 |
| 40 |
|
| 41 |
# P470 doesn't have Zvfh so 16-bit vfredusum shouldn't exist |
| 42 |
# VFRED-NOT: PseudoVFREDUSUM_VS_M1_E16 |