New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong code(armv6) generated for armv5 #28981
Comments
assigned to @rengolin |
error message is /tmp/kraj02/a-6653ef.s: Assembler messages: This is happening in few packages on Linux |
here are detailed error messages from packages |
Hi Khem, I'm not getting the SSAT instructions, can you provide the output of: arm-oe-linux-musleabi-clang --sysroot=/mnt/oe/openembedded-core/build1/tmp-musl/sysroots/qemuarm -march=armv5e -marm -mlittle-endian -S -emit-llvm a.c -O2 thanks, |
Btw, the fix should be simple, regardless of you IR. I'm working on it. |
I have able to reproduce it with ./tmp-musl/sysroots/x86_64-linux/usr/bin/clang -target armv5e-linux -march=armv5e -marm -mlittle-endian -no-integrated-as ~/a.c -S -O2 as well. The key is -no-integrated-as and -O2, I am on 3.9 branch as of yesterday. |
Should be fixed in r276701. This is simple and important enough to go back into 3.9. I'll back-port it. |
Backported to 3.9 branch, will appear in RC2. |
mentioned in issue llvm/llvm-bugzilla-archive#39947 |
Extended Description
When attached program is compiled it generated ssat instruction which is armv6 instruction. Its not caught by internal assembler either. Only GNU assembler is able to flag it.
arm-oe-linux-musleabi-clang --sysroot=/mnt/oe/openembedded-core/build1/tmp-musl/sysroots/qemuarm -march=armv5e -marm -mlittle-endian -no-integrated-as a.c -c -O2
The text was updated successfully, but these errors were encountered: