R600: Use legacy (0 * anything = 0) MUL instructions for pow intrinsics
authorMichel Danzer <michel.daenzer@amd.com>
Fri, 22 Mar 2013 14:09:10 +0000 (14:09 +0000)
committerMichel Danzer <michel.daenzer@amd.com>
Fri, 22 Mar 2013 14:09:10 +0000 (14:09 +0000)
commitc446baa0be1ed2a3bf157519f89a65d348aad17c
tree40af58e0c83b2a9a0c99ade02c590b93556fb32b
parent3016056769639878b4f152838f0cf16d2e482339
R600: Use legacy (0 * anything = 0) MUL instructions for pow intrinsics

Fixes wrong lighting in some corner cases with r600g and radeonsi, e.g.
manifested by failure of two piglit/glean tests and intermittent black
patches in many apps.

Tested on SI and RS880.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=62012 [radeonsi]
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58150 [r600g]

NOTE: This is a candidate for the Mesa stable branch.

Reviewed-by: Christian König <christian.koenig@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177730 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/R600ISelLowering.cpp
lib/Target/R600/R600ISelLowering.h
lib/Target/R600/R600Instructions.td
lib/Target/R600/SIInstructions.td