bolt/deps/llvm-18.1.8/clang/test/CodeGen/const-unordered-compare.c
2025-02-14 19:21:04 +01:00

7 lines
209 B
C

// 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;
}