Depends on D28688
Details
Diff Detail
- Build Status
Buildable 2897 Build 2897: arc lint + arc unit
Event Timeline
llvm/lib/Target/X86/X86Subtarget.cpp | ||
---|---|---|
100 | Good point. The tricky thing here is that R_X86_64_8 is an unsigned relocation, but we're using it to relocate a sign extended operand. Probably the safest thing we can do here is to accept only the range [0,128), which I've done. If it proves necessary later, we can try to recognise patterns like sext i64 (trunc i8 (i8* @foo)) and allow the range [-128,128). |
Please update the patch title to "X86: Produce @ABS8 symbol modifiers for absolute symbols in range [0,128)." before submission.
LGTM
Should we treating this as an unsigned value? D28688 suggested its sign-extended