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