llvm-for-llvmta/tools/clang/test/CodeGen/const-unordered-compare.c

8 lines
205 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
// Checks folding of an unordered comparison
int nan_ne_check() {
// CHECK: ret i32 1
return (__builtin_nanf("") != __builtin_nanf("")) ? 1 : 0;
}