summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBuiltin.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2017-01-31 03:42:07 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2017-01-31 03:42:07 +0000
commita274b209f5898feb31b28db27c503d3ed76455e5 (patch)
tree957b100752e3b7a6da80786a136a890530db42ec /clang/lib/CodeGen/CGBuiltin.cpp
parentd107be846f20568a26a41f408ed2ee70cd903833 (diff)
downloadbcm5719-llvm-a274b209f5898feb31b28db27c503d3ed76455e5.tar.gz
bcm5719-llvm-a274b209f5898feb31b28db27c503d3ed76455e5.zip
AMDGPU: Add builtin for fmed3 intrinsic
llvm-svn: 293600
Diffstat (limited to 'clang/lib/CodeGen/CGBuiltin.cpp')
-rw-r--r--clang/lib/CodeGen/CGBuiltin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index c70a447303f..9ecf118ed9e 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -8397,7 +8397,8 @@ Value *CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned BuiltinID,
case AMDGPU::BI__builtin_amdgcn_classf:
case AMDGPU::BI__builtin_amdgcn_classh:
return emitFPIntBuiltin(*this, E, Intrinsic::amdgcn_class);
-
+ case AMDGPU::BI__builtin_amdgcn_fmed3f:
+ return emitTernaryBuiltin(*this, E, Intrinsic::amdgcn_fmed3);
case AMDGPU::BI__builtin_amdgcn_read_exec: {
CallInst *CI = cast<CallInst>(
EmitSpecialRegisterBuiltin(*this, E, Int64Ty, Int64Ty, true, "exec"));
OpenPOWER on IntegriCloud