On android x86_32 the long double is only 64 bits (compared to 80 bits on linux x86_32) and on android x86_64 the long double is IEEEquad (compared to x87DoubleExtended on linux x86_64). This CL creates new TargetInfo classes for this targets to represent these differences. Differential revision: http://reviews.llvm.org/D8357 llvm-svn: 233177
11 lines
384 B
C
11 lines
384 B
C
// RUN: %clang_cc1 -triple x86_64-linux-android -emit-pch -o %t %s
|
|
// RUN: %clang_cc1 -x ast -ast-print %t | FileCheck %s
|
|
|
|
extern int a1_0[sizeof(long double) == 16 ? 1 : -1];
|
|
extern int a1_i[__alignof(long double) == 16 ? 1 : -1];
|
|
|
|
// Verify that long double is 128 bit IEEEquad
|
|
|
|
long double foo = 1.0E4000L;
|
|
// CHECK: long double foo = 1.00000000000000000000000000000000004E+4000L;
|