OSDN Git Service

[PowerPC] Set SubRegIndex offset for sub_vsx1/sub_pair1
authorJinsong Ji <jji@us.ibm.com>
Wed, 9 Dec 2020 03:29:38 +0000 (22:29 -0500)
committerJinsong Ji <jji@us.ibm.com>
Wed, 9 Dec 2020 03:56:44 +0000 (22:56 -0500)
commit45b08c41bfb04684abfbd846e2924177dbcddd04
treecce0909740760dae048033c3d13b12e6f4bcf5ce
parent02b2c024193b1985d85855a7f85b98aef9ebbcdb
[PowerPC] Set SubRegIndex offset for sub_vsx1/sub_pair1

We defined SubRegIndex for 256/512 regs,
but we did not set the offset for higher part,
so the offset of lower and higher part are the same.
This may cause problem in assessing ranges of SubReg,
it is great that this haven't affected any testcases,
but I think we should fix it to avoid hidden bugs in the future.

Reviewed By: bsaleil, #powerpc

Differential Revision: https://reviews.llvm.org/D92864
llvm/lib/Target/PowerPC/PPCRegisterInfo.td