As in 33257, I was playing around with division+remainder code, and found another case gcc didn't optimize. I was using signed and unsigned variants, and tried a couple different constants. The test case was optimized properly with the constant 3 (signed or unsigned math), and with the constant 128 if unsigned math was used. Using 128 with signed math, the test didn't get optimized away.
-- Summary: guaranteed-true arithmetic test not optimized away depending on constant Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: raeburn at raeburn dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33258