]> granicus.if.org Git - llvm/commit
[AVR] Fix incorrect source regclass of LDWRdPtr
authorJim Lin <tclin914@gmail.com>
Mon, 3 Jun 2019 02:31:07 +0000 (02:31 +0000)
committerJim Lin <tclin914@gmail.com>
Mon, 3 Jun 2019 02:31:07 +0000 (02:31 +0000)
commitbb9a8828e4358526436039718334d91ada8ebdc8
treed33a611ae8054ac6fc1c951d125f180235a87f62
parentcbd1abe8d811d13c39bd5f0930dd0b78403b5237
[AVR] Fix incorrect source regclass of LDWRdPtr

Summary:
LDWRdPtr would be expanded to ld+ldd. ldd only accepts the pointer register is Y or Z.
So the register class of pointer of LDWRdPtr should be PTRDISPREGS instead of PTRREGS.

Reviewers: dylanmckay

Reviewed By: dylanmckay

Subscribers: dylanmckay, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D62300

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362351 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AVR/AVRInstrInfo.td
lib/Target/AVR/AVRRegisterInfo.td
test/CodeGen/AVR/load.ll
test/CodeGen/AVR/pseudo/LDDWRdPtrQ-same-src-dst.mir [deleted file]
test/CodeGen/AVR/pseudo/LDDWRdPtrQ.mir