aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/bitfield-init-zero.c
AgeCommit message (Collapse)AuthorFilesLines
2018-06-26cast: simplify TRUNC + ZEXT to ANDLuc Van Oostenryck1-0/+102
A truncation followed by a zero-extension to the original size, which is produced when loading a storing bitfields, is equivalent to a simple AND masking. Often, this AND can then trigger even more optimizations. So, replace TRUNC + ZEXT instructions by the equivalent AND. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>