R600: Fix min/max matching problems with unordered compares
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 12 Dec 2014 02:30:37 +0000 (02:30 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 12 Dec 2014 02:30:37 +0000 (02:30 +0000)
commit002ca4ca3f0f0e7d4c1a20f0f15843674e6051af
tree5267f4c5f06f1434c47d4afc7c380d9ca3c09d27
parent03858c733c16091d22a52ef6a3170517b62842f3
R600: Fix min/max matching problems with unordered compares

The returned operand needs to be permuted for the unordered
compares. Also fix incorrectly producing fmin_legacy / fmax_legacy
for f64, which don't exist.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224094 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/AMDGPUISelLowering.cpp
lib/Target/R600/AMDGPUISelLowering.h
lib/Target/R600/R600ISelLowering.cpp
lib/Target/R600/SIInstructions.td
test/CodeGen/R600/fmax_legacy.f64.ll [new file with mode: 0644]
test/CodeGen/R600/fmax_legacy.ll
test/CodeGen/R600/fmin_legacy.f64.ll [new file with mode: 0644]
test/CodeGen/R600/fmin_legacy.ll