First Last Prev Next    No search results available
Details
: [sparc] Boolean constants are emitted as true and false
Bug#: 228
: libraries
: Backend: SparcV9
Status: RESOLVED
Resolution: FIXED
: All
: All
: 1.0
: P2
: normal
: 1.2

:
: compile-fail
:
:
  Show dependency tree - Show dependency graph
People
Reporter: John T. Criswell <criswell@uiuc.edu>
Assigned To: Misha Brukman <brukman+bugs@uiuc.edu>

Attachments
Code to reproduce the problem (359 bytes, text/plain)
2004-02-09 17:56, John T. Criswell
Details


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2004-02-09 17:55
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.
------- Comment #1 From John T. Criswell 2004-02-09 17:56:45 -------
Created an attachment (id=76) [details]
Code to reproduce the problem

This code reproduces the problem.
------- Comment #2 From Chris Lattner 2004-02-09 23:03:48 -------
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
------- Comment #3 From Chris Lattner 2004-02-09 23:18:49 -------
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

First Last Prev Next    No search results available