From a471c2ecda37cd1bae0d94e832f002caa7b63216 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Thu, 11 Oct 2007 18:07:22 +0000 Subject: Next PPC long double bits. First cut at constants. No compile-time support for constant operations yet, just format transformations. Make readers and writers work. Split constants into 2 doubles in Legalize. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42865 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AsmParser/Lexer.cpp.cvs | 2 +- lib/AsmParser/Lexer.l | 2 +- lib/AsmParser/Lexer.l.cvs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/AsmParser') diff --git a/lib/AsmParser/Lexer.cpp.cvs b/lib/AsmParser/Lexer.cpp.cvs index 6e2819f..536d569 100644 --- a/lib/AsmParser/Lexer.cpp.cvs +++ b/lib/AsmParser/Lexer.cpp.cvs @@ -2199,7 +2199,7 @@ YY_RULE_SETUP #line 488 "/Volumes/MacOS9/gcc/llvm/lib/AsmParser/Lexer.l" { uint64_t Pair[2]; HexToIntPair(yytext+3, Pair); - llvmAsmlval.FPVal = new APFloat(APInt(128, 2, Pair)); + llvmAsmlval.FPVal = new APFloat(APInt(128, 2, Pair), true); return FPVAL; } YY_BREAK diff --git a/lib/AsmParser/Lexer.l b/lib/AsmParser/Lexer.l index 73e9c54..0591cd9 100644 --- a/lib/AsmParser/Lexer.l +++ b/lib/AsmParser/Lexer.l @@ -487,7 +487,7 @@ shufflevector { RET_TOK(OtherOpVal, ShuffleVector, SHUFFLEVECTOR); } } {HexFP128Constant} { uint64_t Pair[2]; HexToIntPair(yytext+3, Pair); - llvmAsmlval.FPVal = new APFloat(APInt(128, 2, Pair)); + llvmAsmlval.FPVal = new APFloat(APInt(128, 2, Pair), true); return FPVAL; } {HexPPC128Constant} { uint64_t Pair[2]; diff --git a/lib/AsmParser/Lexer.l.cvs b/lib/AsmParser/Lexer.l.cvs index 73e9c54..0591cd9 100644 --- a/lib/AsmParser/Lexer.l.cvs +++ b/lib/AsmParser/Lexer.l.cvs @@ -487,7 +487,7 @@ shufflevector { RET_TOK(OtherOpVal, ShuffleVector, SHUFFLEVECTOR); } } {HexFP128Constant} { uint64_t Pair[2]; HexToIntPair(yytext+3, Pair); - llvmAsmlval.FPVal = new APFloat(APInt(128, 2, Pair)); + llvmAsmlval.FPVal = new APFloat(APInt(128, 2, Pair), true); return FPVAL; } {HexPPC128Constant} { uint64_t Pair[2]; -- cgit v1.1