compnerd added a comment.
I wonder if we should take this a bit further. Use something like a
`PAGE_SIZE` constant to avoid this confusion entirely. Furthremore, different
targets could use different page sizes. IIRC, SPARC has a 8K page size by
default.
Repository:
rL LLVM
mgorny created this revision.
Herald added a subscriber: dberris.
Fix the logic used to calculate page address in clear_cache_test to use
the binary negation of 4095 rather than arithmetic. The latter gives
incorrect result since:
-4095 -> 0xf001
~4095 -> 0xf000
Alternatively, -4096