[PATCH] D31197: [ARM] Add a driver option for +no-neg-immediates

Sanne Wouda via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 22 05:02:36 PDT 2017

sanwou01 added a comment.

Hi Renato,

I'm not sure what you have in mind.  The command `clang -target arm-none-gnueabi foo.s -mllvm -mattr=+no-neg-immediates` does not seem to work for me. Am I missing something?

Also,  this <http://lists.llvm.org/pipermail/llvm-dev/2016-May/099026.html> seems to suggest that I shouldn't be using this construct.

As this is not really a "feature" of the architecture, so a modifier to `-march` (like `-march=armv8+dsp`) doesn't make sense.

Note also that `-mno-neg-immediates` also affects inline assembly, so it makes sense as a compiler option.



More information about the llvm-commits mailing list