We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On my PowerBook G4, compiling this program:
#include <stdio.h>
int main() { unsigned long int ctz_x = 0x0000f000; unsigned long int ctz_c;
asm("{cntlz|cntlzw} %0,%1" : "=r" (ctz_c) : "r" (ctz_x & -ctz_x));
printf("ctz_c == %d\n", ctz_c); return 0; }
results in the use of the mnemonic "cntlz" instead of "cntlzw". This produces an error when trying to assemble the program:
cntlzw_miscompile.s:25:Invalid mnemonic 'cntlz'
GCC outputs "cntlzw" instead.
-bw
The text was updated successfully, but these errors were encountered:
This was found when trying to compile "gmp".
Sorry, something went wrong.
Fixed with:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070115/042747.html http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070115/042748.html http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070115/042749.html http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070115/042750.html http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070115/042751.html http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070115/042752.html
Fix sigsegvs occuring when malloc'd memory is too small. (llvm#1467)
6a60508
* Fix sigsegvs occuring when malloc'd memory is too small. * Was not stripping the fir.heap type correctly. * Fix typo in comment.
No branches or pull requests
Extended Description
On my PowerBook G4, compiling this program:
#include <stdio.h>
int main()
{
unsigned long int ctz_x = 0x0000f000;
unsigned long int ctz_c;
asm("{cntlz|cntlzw} %0,%1"
: "=r" (ctz_c)
: "r" (ctz_x & -ctz_x));
printf("ctz_c == %d\n", ctz_c);
return 0;
}
results in the use of the mnemonic "cntlz" instead of "cntlzw". This produces an error when trying to
assemble the program:
cntlzw_miscompile.s:25:Invalid mnemonic 'cntlz'
GCC outputs "cntlzw" instead.
-bw
The text was updated successfully, but these errors were encountered: