Unverified Commit f045f2c2 authored by Amara Emerson's avatar Amara Emerson Committed by GitHub
Browse files

[AArch64][SME] Fix generating incorrect TBZ when lowering lazy save. (#68429)

After calling arm_sme_state, the -S assembly would show clang generating
a “tbz xN, #0, Lbb”. However, disassembling it showed that it was
actually encoded as “tbz xN, #32, Lbb”. The issue is that for TBZ, if
you want a bit offset <32 you need to use the W variant, since the
instruction overloads the top bit of the immediate.
parent 7050ff46
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment