Bug 460356 -- s390: Fix code generation for Iop_Sqrt32Fx4

There is no instruction selector for Iop_Sqrt32Fx4, leading to Valgrind
panicking with the message:

   s390_isel_vec_expr: cannot reduce tree

Fix this.
This commit is contained in:
Andreas Arnez 2022-10-13 14:29:08 +02:00
parent c5d52a4056
commit 6da4025b59
2 changed files with 5 additions and 0 deletions

1
NEWS
View File

@ -85,6 +85,7 @@ are not entered into bugzilla tend to get forgotten about or ignored.
444488 Use glibc.pthread.stack_cache_size tunable
444568 drd/tests/pth_barrier_thr_cr fails on Fedora 38
459476 vgdb: allow address reuse to avoid "address already in use" errorsuse" errors
460356 s390: Sqrt32Fx4 -- cannot reduce tree
462830 WARNING: unhandled amd64-freebsd syscall: 474
463027 broken check for MPX instruction support in assembler

View File

@ -4552,6 +4552,10 @@ s390_isel_vec_expr_wrk(ISelEnv *env, IRExpr *expr)
goto Iop_VV_wrk;
}
case Iop_Sqrt32Fx4:
size = 4;
vec_unop = S390_VEC_FLOAT_SQRT;
goto Iop_irrm_V_wrk;
case Iop_Sqrt64Fx2:
size = 8;
vec_unop = S390_VEC_FLOAT_SQRT;