llvm-project
87d73f74 - [Hexagon] Fix encoding of packets with fixups followed by alignment (#179168)

Commit
27 days ago
[Hexagon] Fix encoding of packets with fixups followed by alignment (#179168) When a packet containing extended immediates and new-value compare-jump instructions with fixups was followed by a .p2align directive, we would incorrectly add nops to the packet. After reshuffling, the fixup offsets would become invalid, causing corrupted encodings. Fixes round-trip assembly for patterns like: { r18 = ##65536 if (!cmp.gtu(r1,r18.new)) jump:t .L1 } .p2align 4
Author
Parents
Loading