[Bug tree-optimization/100672] wrong code with vector shift and unary minus

2021-05-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100672 Richard Biener changed: What|Removed |Added Status|NEW |WAITING --- Comment #5 from Richard Bi

[Bug tree-optimization/100672] wrong code with vector shift and unary minus

2021-05-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100672 --- Comment #4 from Richard Biener --- diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 419117dca3f..ef0d15a289d 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -512,7 +512,7 @@ negate_expr_p (tree t) if (TREE_CODE (TREE_OPE

[Bug tree-optimization/100672] wrong code with vector shift and unary minus

2021-05-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100672 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug tree-optimization/100672] wrong code with vector shift and unary minus

2021-05-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100672 --- Comment #2 from Richard Biener --- Maybe sth is wrong with the testcase? clang also results in an abort. Isn't right-shift of negative values undefined? .original dumps ;; Function foo (null) ;; enabled by -tree-original { return VIE

[Bug tree-optimization/100672] wrong code with vector shift and unary minus

2021-05-19 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100672 Zdenek Sojka changed: What|Removed |Added Known to fail||10.3.1, 11.1.1, 12.0,