summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorWei Ding <wei.ding2@amd.com>2016-07-12 18:02:14 +0000
committerWei Ding <wei.ding2@amd.com>2016-07-12 18:02:14 +0000
commit5b2636a15277b2499f2bc1f4c1f009f9ed1bd3f1 (patch)
tree317cef08d190efcbdb640035fb9436a4f17648eb /llvm/lib/Target
parent98c0f482d66624d72a4186a58f535536238bee8a (diff)
downloadbcm5719-llvm-5b2636a15277b2499f2bc1f4c1f009f9ed1bd3f1.tar.gz
bcm5719-llvm-5b2636a15277b2499f2bc1f4c1f009f9ed1bd3f1.zip
AMDGPU: Add LLVM IR Intrinsic for v_lerp_u8
Differential Revision: http://reviews.llvm.org/D22239 llvm-svn: 275197
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/AMDGPU/SIInstructions.td4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIInstructions.td b/llvm/lib/Target/AMDGPU/SIInstructions.td
index 05e0e3e504c..7cf5faa216d 100644
--- a/llvm/lib/Target/AMDGPU/SIInstructions.td
+++ b/llvm/lib/Target/AMDGPU/SIInstructions.td
@@ -1717,6 +1717,10 @@ defm V_FMA_F32 : VOP3Inst <vop3<0x14b, 0x1cb>, "v_fma_f32",
defm V_FMA_F64 : VOP3Inst <vop3<0x14c, 0x1cc>, "v_fma_f64",
VOP_F64_F64_F64_F64, fma
>;
+
+defm V_LERP_U8 : VOP3Inst <vop3<0x14d, 0x1cd>, "v_lerp_u8",
+ VOP_I32_I32_I32_I32, int_amdgcn_lerp
+>;
} // End isCommutable = 1
//def V_LERP_U8 : VOP3_U8 <0x0000014d, "v_lerp_u8", []>;
OpenPOWER on IntegriCloud