summaryrefslogtreecommitdiff
path: root/test/CodeGen/builtins-nvptx.c
diff options
context:
space:
mode:
authorJustin Holewinski <jholewinski@nvidia.com>2014-12-02 12:58:24 +0000
committerJustin Holewinski <jholewinski@nvidia.com>2014-12-02 12:58:24 +0000
commit8a112fe4f65b88e53c85ed91c27f2974189d73ca (patch)
tree3597c7b136dddcdca7dee578e681ed46c4f891ef /test/CodeGen/builtins-nvptx.c
parentd04e6fdd403fcd39dc96075df858cd942c3ceab5 (diff)
downloadclang-8a112fe4f65b88e53c85ed91c27f2974189d73ca.tar.gz
[NVPTX] Fix type error for some builtins in BuiltinsNVPTX.def
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/builtins-nvptx.c')
-rw-r--r--test/CodeGen/builtins-nvptx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/CodeGen/builtins-nvptx.c b/test/CodeGen/builtins-nvptx.c
index cee9061292..5f91f7ad3b 100644
--- a/test/CodeGen/builtins-nvptx.c
+++ b/test/CodeGen/builtins-nvptx.c
@@ -155,6 +155,8 @@ void nvvm_math(float f1, float f2, double d1, double d2) {
float t3 = __nvvm_sqrt_rn_f(f1);
// CHECK: call float @llvm.nvvm.rcp.rn.f
float t4 = __nvvm_rcp_rn_f(f2);
+// CHECK: call float @llvm.nvvm.add.rn.f
+ float t5 = __nvvm_add_rn_f(f1, f2);
// CHECK: call double @llvm.nvvm.fmax.d
double td1 = __nvvm_fmax_d(d1, d2);