diff options
author | xuli <xuli1@eswincomputing.com> | 2023-12-16 08:57:44 +0800 |
---|---|---|
committer | xuli <xuli1@eswincomputing.com> | 2023-12-18 01:17:05 +0000 |
commit | 73aeec31c5ef15b5a3877370353164a2a6aaa8a6 (patch) | |
tree | 81604ca18f5beb10f174935d22ed0fa53f70605e /libphobos | |
parent | 2c3e4d18b2f75cce287c8566c4231c677a243161 (diff) | |
download | gcc-73aeec31c5ef15b5a3877370353164a2a6aaa8a6.zip gcc-73aeec31c5ef15b5a3877370353164a2a6aaa8a6.tar.gz gcc-73aeec31c5ef15b5a3877370353164a2a6aaa8a6.tar.bz2 |
RISC-V: Add viota missed avl_type attribute
This patch fixes the following FAIL when LMUL = 8:
riscv-sim/-march=rv64gcv/-mabi=lp64d/-mcmodel=medany/--param=riscv-autovec-lmul=m8/--param=riscv-autovec-preference=scalable
FAIL: gcc.dg/vect/slp-multitypes-2.c execution test
The rootcause is we missed viota avl_type, so we end up with incorrect vsetvl configuration:
vsetvli zero,a2,e64,m8,ta,ma
viota.m v16,v0
'a2' value is a garbage value.
After this patch:
vsetvli a4,zero,e64,m8,ta,ma
viota.m v16,v0
gcc/ChangeLog:
* config/riscv/vector.md: Add viota avl_type attribute.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/autovec/bug-2.c: New test.
Diffstat (limited to 'libphobos')
0 files changed, 0 insertions, 0 deletions