Signedness does not change number of trailing zeros.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Is 'nsw' a requirement? If not, the tests should not include that, or at least not *all* of the tests should include that.
The latest version of Alive can verify this, but not the online version?
Comment Actions
I built z3 and Alive2 trunks for Ubuntu 18.04
I took example
Name: cttz constant
%r = cttz i8 32, i1 0
=>
%r = 5
~/alive2/build$ ./alive -root-only c.opt
Processing c.opt..
It never stops..
Edit: I tried 4.8.1 too. Alive2's master branch broken?
Comment Actions
LGTM
test/Transforms/InstCombine/cttz-negative.ll | ||
---|---|---|
19–20 ↗ | (On Diff #205612) | It would be better if at least 1 of these tests showed an extra use of the negated value. That would verify that we still do the transform independently of uses of that value. |