mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-03 11:08:32 +00:00
Fix a bug in the last patch and convert to && instead of & for logical expr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31463 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7c475c5d12
commit
bcf81242df
@ -534,7 +534,7 @@ void CWriter::printConstantPacked(ConstantPacked *CP) {
|
|||||||
// only deal in IEEE FP).
|
// only deal in IEEE FP).
|
||||||
//
|
//
|
||||||
static bool isFPCSafeToPrint(const ConstantFP *CFP) {
|
static bool isFPCSafeToPrint(const ConstantFP *CFP) {
|
||||||
#if HAVE_PRINTF_A & ENABLED_CBE_PRINTF_A
|
#if HAVE_PRINTF_A && ENABLE_CBE_PRINTF_A
|
||||||
char Buffer[100];
|
char Buffer[100];
|
||||||
sprintf(Buffer, "%a", CFP->getValue());
|
sprintf(Buffer, "%a", CFP->getValue());
|
||||||
|
|
||||||
@ -726,7 +726,7 @@ void CWriter::printConstant(Constant *CPV) {
|
|||||||
<< " /*inf*/ ";
|
<< " /*inf*/ ";
|
||||||
} else {
|
} else {
|
||||||
std::string Num;
|
std::string Num;
|
||||||
#if HAVE_PRINTF_A & ENABLE_CBE_PRINTF_A
|
#if HAVE_PRINTF_A && ENABLE_CBE_PRINTF_A
|
||||||
// Print out the constant as a floating point number.
|
// Print out the constant as a floating point number.
|
||||||
char Buffer[100];
|
char Buffer[100];
|
||||||
sprintf(Buffer, "%a", FPC->getValue());
|
sprintf(Buffer, "%a", FPC->getValue());
|
||||||
|
@ -534,7 +534,7 @@ void CWriter::printConstantPacked(ConstantPacked *CP) {
|
|||||||
// only deal in IEEE FP).
|
// only deal in IEEE FP).
|
||||||
//
|
//
|
||||||
static bool isFPCSafeToPrint(const ConstantFP *CFP) {
|
static bool isFPCSafeToPrint(const ConstantFP *CFP) {
|
||||||
#if HAVE_PRINTF_A & ENABLED_CBE_PRINTF_A
|
#if HAVE_PRINTF_A && ENABLE_CBE_PRINTF_A
|
||||||
char Buffer[100];
|
char Buffer[100];
|
||||||
sprintf(Buffer, "%a", CFP->getValue());
|
sprintf(Buffer, "%a", CFP->getValue());
|
||||||
|
|
||||||
@ -726,7 +726,7 @@ void CWriter::printConstant(Constant *CPV) {
|
|||||||
<< " /*inf*/ ";
|
<< " /*inf*/ ";
|
||||||
} else {
|
} else {
|
||||||
std::string Num;
|
std::string Num;
|
||||||
#if HAVE_PRINTF_A & ENABLE_CBE_PRINTF_A
|
#if HAVE_PRINTF_A && ENABLE_CBE_PRINTF_A
|
||||||
// Print out the constant as a floating point number.
|
// Print out the constant as a floating point number.
|
||||||
char Buffer[100];
|
char Buffer[100];
|
||||||
sprintf(Buffer, "%a", FPC->getValue());
|
sprintf(Buffer, "%a", FPC->getValue());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user