]> granicus.if.org Git - clang/commit
A not equal for an unordered relation should return true as specified in IEEE-754...
authorMon P Wang <wangmp@apple.com>
Thu, 29 Apr 2010 05:53:29 +0000 (05:53 +0000)
committerMon P Wang <wangmp@apple.com>
Thu, 29 Apr 2010 05:53:29 +0000 (05:53 +0000)
commitfc39dc4c7886723310419b1869cf651ca55b7af4
treef0789cc89d713529bb2b45f40ae1cd549fae6566
parent77e2c67411084c47b1cf511a191b31adf38662ba
A not equal for an unordered relation should return true as specified in IEEE-754, e.g.,
NAN != NAN ? 1 : 0 should return 1.  Also fix the case for complex.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102598 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
test/CodeGen/const-unordered-compare.c [new file with mode: 0644]