summaryrefslogtreecommitdiff
path: root/test/CodeGen/R600/sgpr-copy.ll
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-06-19 01:19:19 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-06-19 01:19:19 +0000
commitd9b35435b89015d154b0e20f4d4796d936237f84 (patch)
treec1fbe95a3f550edf4da38ffc64009b0063781697 /test/CodeGen/R600/sgpr-copy.ll
parentdd8406a6b7f0cbf9082c4bdb2cc8c3b3d5da6eec (diff)
downloadllvm-d9b35435b89015d154b0e20f4d4796d936237f84.tar.gz
llvm-d9b35435b89015d154b0e20f4d4796d936237f84.tar.bz2
llvm-d9b35435b89015d154b0e20f4d4796d936237f84.tar.xz
R600/SI: Add intrinsics for various math instructions.
These will be used for custom lowering and for library implementations of various math functions, so it's useful to expose these as builtins. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/R600/sgpr-copy.ll')
-rw-r--r--test/CodeGen/R600/sgpr-copy.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/R600/sgpr-copy.ll b/test/CodeGen/R600/sgpr-copy.ll
index c581d86b99..c7d5bf9064 100644
--- a/test/CodeGen/R600/sgpr-copy.ll
+++ b/test/CodeGen/R600/sgpr-copy.ll
@@ -70,7 +70,7 @@ main_body:
%55 = fadd float %54, %53
%56 = fmul float %45, %45
%57 = fadd float %55, %56
- %58 = call float @llvm.AMDGPU.rsq(float %57)
+ %58 = call float @llvm.AMDGPU.rsq.f32(float %57)
%59 = fmul float %43, %58
%60 = fmul float %44, %58
%61 = fmul float %45, %58
@@ -212,7 +212,7 @@ declare float @llvm.SI.fs.interp(i32, i32, i32, <2 x i32>) #1
declare <4 x float> @llvm.SI.sample.v2i32(<2 x i32>, <32 x i8>, <16 x i8>, i32) #1
; Function Attrs: readnone
-declare float @llvm.AMDGPU.rsq(float) #3
+declare float @llvm.AMDGPU.rsq.f32(float) #3
; Function Attrs: readnone
declare float @llvm.AMDIL.exp.(float) #3