diff options
author | Richard Biener <rguenther@suse.de> | 2024-03-04 10:38:31 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2024-03-04 11:44:54 +0100 |
commit | cde50296a19b109909089b91d532d2c8455f5f10 (patch) | |
tree | 1e917627fa5126700eeddd051c83d2a484ecda29 /libgomp/target.c | |
parent | 324d2907c86f05e40dc52d226940308f53a956c2 (diff) | |
download | gcc-cde50296a19b109909089b91d532d2c8455f5f10.zip gcc-cde50296a19b109909089b91d532d2c8455f5f10.tar.gz gcc-cde50296a19b109909089b91d532d2c8455f5f10.tar.bz2 |
tree-optimization/114203 - wrong CLZ niter computation
For precision less than int we apply the adjustment to make it defined
at zero after the adjustment to make it compute CLZ rather than CTZ.
That's wrong.
PR tree-optimization/114203
* tree-ssa-loop-niter.cc (build_cltz_expr): Apply CTZ->CLZ
adjustment before making the result defined at zero.
* gcc.dg/torture/pr114203.c: New testcase.
Diffstat (limited to 'libgomp/target.c')
0 files changed, 0 insertions, 0 deletions