aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Danzer <michel.daenzer@amd.com>2013-02-07 14:55:16 +0000
committerMichel Danzer <michel.daenzer@amd.com>2013-02-07 14:55:16 +0000
commit7db31f100793cd4588de8f71b00a26784dd97c86 (patch)
treef7e3b81fb6f6e7857d406096379d61a4329b9fce
parentd9a8d43ed3e7c6c32f52ab5d0f627f7b1cdb6aac (diff)
R600/SI: Add pattern for flog2
22 more little piglits with radeonsi. Reviewed-by: Tom Stellard <thomas.stellard@amd.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174615 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/R600/SIInstructions.td4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/R600/SIInstructions.td b/lib/Target/R600/SIInstructions.td
index 50605d07a9..d33e1139d2 100644
--- a/lib/Target/R600/SIInstructions.td
+++ b/lib/Target/R600/SIInstructions.td
@@ -615,7 +615,9 @@ defm V_EXP_F32 : VOP1_32 <0x00000025, "V_EXP_F32",
[(set VReg_32:$dst, (fexp2 AllReg_32:$src0))]
>;
defm V_LOG_CLAMP_F32 : VOP1_32 <0x00000026, "V_LOG_CLAMP_F32", []>;
-defm V_LOG_F32 : VOP1_32 <0x00000027, "V_LOG_F32", []>;
+defm V_LOG_F32 : VOP1_32 <0x00000027, "V_LOG_F32",
+ [(set VReg_32:$dst, (flog2 AllReg_32:$src0))]
+>;
defm V_RCP_CLAMP_F32 : VOP1_32 <0x00000028, "V_RCP_CLAMP_F32", []>;
defm V_RCP_LEGACY_F32 : VOP1_32 <0x00000029, "V_RCP_LEGACY_F32", []>;
defm V_RCP_F32 : VOP1_32 <0x0000002a, "V_RCP_F32",