agx: add more 8-bit address fusing rules

helps kernel I'm writing

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32759>
This commit is contained in:
Alyssa Rosenzweig 2024-11-26 22:45:44 -05:00 committed by Marge Bot
parent e110b8f2c9
commit fc4e533709

View file

@ -292,6 +292,11 @@ for s_ in range(1, 5):
fuse_lea += [
(('iadd', a, ('u2u64', 'b@32')), ('ulea_agx', a, b, 0)),
(('iadd', a, ('i2i64', 'b@32')), ('ilea_agx', a, b, 0)),
(('iadd', a, ('iadd', ('u2u64', 'b@32'), c)),
('ulea_agx', ('iadd', a, c), b, 0)),
(('iadd', a, ('iadd', ('i2i64', 'b@32'), c)),
('ilea_agx', ('iadd', a, c), b, 0)),
]
# After lowering address arithmetic, the various address arithmetic opcodes are