diff options
author | Juzhe-Zhong <juzhe.zhong@rivai.ai> | 2023-08-17 13:59:06 +0800 |
---|---|---|
committer | Pan Li <pan2.li@intel.com> | 2023-08-17 14:20:38 +0800 |
commit | 29547511f7bae06f9f424f8c8583014878240016 (patch) | |
tree | 9a864c5d6fed65eab6d0438c061aa4f454d51e59 /libgomp/allocator.c | |
parent | 1c3c405ecf23aeb3a2976350887bf2238719c71f (diff) | |
download | gcc-29547511f7bae06f9f424f8c8583014878240016.zip gcc-29547511f7bae06f9f424f8c8583014878240016.tar.gz gcc-29547511f7bae06f9f424f8c8583014878240016.tar.bz2 |
RISC-V: Fix incorrect VTYPE fusion for floating point scalar move insn[PR111037]
void foo(_Float16 y, int64_t *i64p)
{
vint64m1_t vx =__riscv_vle64_v_i64m1 (i64p, 1);
vx = __riscv_vadd_vv_i64m1 (vx, vx, 1);
vfloat16m1_t vy =__riscv_vfmv_s_f_f16m1 (y, 1);
asm volatile ("# use %0 %1" : : "vr"(vx), "vr" (vy));
}
zve64f:
foo:
vsetivli zero,1,e16,mf4,ta,ma
vle64.v v1,0(a0)
vfmv.s.f v2,fa0
vsetvli zero,zero,e64,m1,ta,ma
vadd.vv v1,v1,v1
zve64d:
foo:
vsetivli zero,1,e64,m1,ta,ma
vle64.v v1,0(a0)
vfmv.s.f v2,fa0
vadd.vv v1,v1,v1
gcc/ChangeLog:
PR target/111037
* config/riscv/riscv-vsetvl.cc (float_insn_valid_sew_p): New function.
(second_sew_less_than_first_sew_p): Fix bug.
(first_sew_less_than_second_sew_p): Ditto.
gcc/testsuite/ChangeLog:
PR target/111037
* gcc.target/riscv/rvv/base/pr111037-1.c: New test.
* gcc.target/riscv/rvv/base/pr111037-2.c: New test.
Diffstat (limited to 'libgomp/allocator.c')
0 files changed, 0 insertions, 0 deletions