1*67e74705SXin Li // RUN: %clang_cc1 -triple mips64-none-linux-gnu -emit-pch -o %t %s 2*67e74705SXin Li // REQUIRES: mips-registered-target 3*67e74705SXin Li // RUN: %clang_cc1 -x ast -ast-print %t | FileCheck %s 4*67e74705SXin Li 5*67e74705SXin Li // Make sure the semantics of FloatingLiterals are stored correctly in 6*67e74705SXin Li // the AST. Previously, the ASTWriter didn't store anything and the 7*67e74705SXin Li // reader assumed PPC 128-bit float semantics, which is incorrect for 8*67e74705SXin Li // targets with 128-bit IEEE long doubles. 9*67e74705SXin Li 10*67e74705SXin Li long double foo = 1.0E4000L; 11*67e74705SXin Li // CHECK: long double foo = 1.00000000000000000000000000000000004E+4000L; 12*67e74705SXin Li 13*67e74705SXin Li // Just as well check the others are still sane while we're here... 14*67e74705SXin Li 15*67e74705SXin Li double bar = 1.0E300; 16*67e74705SXin Li // CHECK: double bar = 1.0000000000000001E+300; 17*67e74705SXin Li 18*67e74705SXin Li float wibble = 1.0E40; 19*67e74705SXin Li // CHECK: float wibble = 1.0E+40; 20