Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
669496ba9fa753a238e3f0018b7a6235ec672727
/
.
/
test
/
CodeGen
/
const-unordered-compare.c
blob: ffd04db6f8621c712426fa2bd37b7b0e3cf565d3 [
file
] [
log
] [
blame
]
// 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
;
}