[llvm] [llvm][ARM] Add Addend Checks for MOVT and MOVW instructions. (PR #111970)

Jack Styles via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 14 04:34:22 PDT 2024


Stylie777 wrote:

Revert submitted at: https://github.com/llvm/llvm-project/pull/112184

Thanks for letting me know,

Jack

Jack Styles
Apprentice Software Engineer, CE Software
www.arm.com<http://www.arm.com>

[signature_2396084166]


From: Martin Storsjö ***@***.***>
Date: Monday, 14 October 2024 at 12:22
To: llvm/llvm-project ***@***.***>
Cc: Jack Styles ***@***.***>, State change ***@***.***>
Subject: Re: [llvm/llvm-project] [llvm][ARM] Add Addend Checks for MOVT and MOVW instructions. (PR #111970)

This breaks code generation for Windows/ARM - we hit the Relocation Not In Range when compiling regular C/C++ code.

This is reproducible with https://martin.st/temp/outofrange.cpp, like this:

$ clang -target armv7-w64-mingw32 outofrange.cpp -O3 -c

error: Relocation Not In Range

error: Relocation Not In Range

2 errors generated.

When looking at the output of the same compilation like this:

$ clang -target armv7-w64-mingw32 outofrange.cpp -O3 -S -o - | grep -E 'upper16|lower16'

There's no single case of a lower16/upper16 relocation that has any offset at all - yet compilation fails.

Please revert while figuring out what's going wrong here.

—
Reply to this email directly, view it on GitHub<https://github.com/llvm/llvm-project/pull/111970#issuecomment-2410916053>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXXHSZG3VU3UKRRWQXDO5BTZ3OSNNAVCNFSM6AAAAABPYRAVMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJQHEYTMMBVGM>.
You are receiving this because you modified the open/close state.Message ID: ***@***.***>

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


https://github.com/llvm/llvm-project/pull/111970


More information about the llvm-commits mailing list