mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-11 10:25:41 +00:00
make sure to propagate operand flags in SelectTLSADDRAddr properly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74326 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1313,7 +1313,8 @@ bool X86DAGToDAGISel::SelectTLSADDRAddr(SDValue Op, SDValue N, SDValue &Base,
|
|||||||
AM.GV = GA->getGlobal();
|
AM.GV = GA->getGlobal();
|
||||||
AM.Disp += GA->getOffset();
|
AM.Disp += GA->getOffset();
|
||||||
AM.Base.Reg = CurDAG->getRegister(0, N.getValueType());
|
AM.Base.Reg = CurDAG->getRegister(0, N.getValueType());
|
||||||
|
AM.SymbolFlags = GA->getTargetFlags();
|
||||||
|
|
||||||
if (N.getValueType() == MVT::i32) {
|
if (N.getValueType() == MVT::i32) {
|
||||||
AM.Scale = 1;
|
AM.Scale = 1;
|
||||||
AM.IndexReg = CurDAG->getRegister(X86::EBX, MVT::i32);
|
AM.IndexReg = CurDAG->getRegister(X86::EBX, MVT::i32);
|
||||||
|
Reference in New Issue
Block a user