R600: Fix handling of NAN in comparison instructions
authorTom Stellard <thomas.stellard@amd.com>
Sat, 28 Sep 2013 02:50:50 +0000 (02:50 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Sat, 28 Sep 2013 02:50:50 +0000 (02:50 +0000)
commit9c598cfebcc3387676995873e65ae4fed96b3edc
tree1da7067848100b72dee7a60974c1734b2e468769
parentbbafe422d6f9036b03992ee5eacb5d09644c3267
R600: Fix handling of NAN in comparison instructions

We were completely ignoring the unorder/ordered attributes of condition
codes and also incorrectly lowering seto and setuo.

Reviewed-by: Vincent Lejeune<vljn at ovi.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191603 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/AMDGPUInstructions.td
lib/Target/R600/R600ISelLowering.cpp
lib/Target/R600/R600Instructions.td
test/CodeGen/R600/fmax.ll
test/CodeGen/R600/kcache-fold.ll
test/CodeGen/R600/pv.ll
test/CodeGen/R600/selectcc-opt.ll
test/CodeGen/R600/set-dx10.ll
test/CodeGen/R600/unsupported-cc.ll
test/CodeGen/R600/vselect.ll