[PATCH] D73660: [AArch64][GlobalISel] Fix TBNZ/TBZ opcode selection

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 29 12:54:27 PST 2020


paquette created this revision.
paquette added a reviewer: aemerson.
Herald added subscribers: Petar.Avramovic, hiraditya, kristof.beyls, rovka.
Herald added a project: LLVM.

When the bit is <= 32, we have to use the W register variant for TB(N)Z.

This is because of the way the instruction is encoded.


https://reviews.llvm.org/D73660

Files:
  llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/opt-and-tbnz-tbz.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73660.241263.patch
Type: text/x-patch
Size: 5461 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200129/a4bf7ff5/attachment.bin>


More information about the llvm-commits mailing list