aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/const-unordered-compare.c
blob: 6a219822b270b83444473dd75ff06e3fb101e32a (plain)
1
2
3
4
5
6
7
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s

// Checks folding of an unordered comparison
int nan_ne_check(void) {
  // CHECK: ret i32 1
  return (__builtin_nanf("") != __builtin_nanf("")) ? 1 : 0;
}