mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-29 00:08:59 -04:00

Currently, the NaN values emitted for MIPS architectures do not cover non-IEEE754-2008 compliant case. This change fixes the issue. Patch by Vladimir Radosavljevic. Differential Revision: http://reviews.llvm.org/D7882 llvm-svn: 230653
14 lines
341 B
C
14 lines
341 B
C
// RUN: %clang -target mipsel-unknown-linux -mnan=legacy -emit-llvm -S %s -o - | FileCheck %s
|
|
// CHECK: float 0x7FF4000000000000, float 0x7FF8000000000000
|
|
// CHECK: double 0x7FF4000000000000, double 0x7FF8000000000000
|
|
|
|
float f[] = {
|
|
__builtin_nan(""),
|
|
__builtin_nans(""),
|
|
};
|
|
|
|
double d[] = {
|
|
__builtin_nan(""),
|
|
__builtin_nans(""),
|
|
};
|