Bugzilla – Bug 228
[sparc] Boolean constants are emitted as true and false
Last modified: 2004-02-09 23:18:49
You need to log in before you can comment on or make changes to this bug.
Boolean constants in LLVM are emitted as the symbols true and false when converted to Sparc assembly via the llc program. These symbols are not recognized by the Sparc assembler. To fix this bug, either the symbols true and false need to be defined to 1 and 0, respectively, or boolean constants need to be emitted as 1 and 0.
Created an attachment (id=76) [details] Code to reproduce the problem This code reproduces the problem.
This should be fixed to print the constants as 0 and 1 as the X86 backend does. Unless someone beats me to it, I'll make a patch for this tommorow. -Chris
Fixed. Here's the patch: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040209/011413.html Testcase is known as 252.eon. -Chris