summaryrefslogtreecommitdiff
path: root/test/CodeGen/builtin-nan-legacy.c
blob: cd0f0fd14f14c3a8798d4c0d7cdb5ccfea369a86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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(""),
};