brintos

brintos / llvm-project-archived public Read only

0
0
Text · 714 B · b5ff6fe Raw
20 lines · c
1// RUN: %clang_cc1 -triple mips64-none-linux-gnu -emit-pch -o %t %s2// REQUIRES: mips-registered-target3// RUN: %clang_cc1 -x ast -ast-print %t | FileCheck %s4 5// Make sure the semantics of FloatingLiterals are stored correctly in6// the AST. Previously, the ASTWriter didn't store anything and the7// reader assumed PPC 128-bit float semantics, which is incorrect for8// targets with 128-bit IEEE long doubles.9 10long double foo = 1.0E4000L;11// CHECK: long double foo = 1.00000000000000000000000000000000004E+4000L;12 13// Just as well check the others are still sane while we're here...14 15double bar = 1.0E300;16// CHECK: double bar = 1.0000000000000001E+300;17 18float wibble = 1.0E40;19// CHECK: float wibble = 1.0E+40;20