summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.ldexp.ll
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2016-06-20 18:33:56 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2016-06-20 18:33:56 +0000
commitb6d8c37e1aff57e40c3dbe8fb7d827fbc957d26b (patch)
tree58a0e0f936109d7630a99e903b4a8f51cb3f1c67 /llvm/test/CodeGen/AMDGPU/llvm.amdgcn.ldexp.ll
parent14dcb042bc767742c555620c0b6a4fc5ee0b4799 (diff)
downloadbcm5719-llvm-b6d8c37e1aff57e40c3dbe8fb7d827fbc957d26b.tar.gz
bcm5719-llvm-b6d8c37e1aff57e40c3dbe8fb7d827fbc957d26b.zip
AMDGPU: Fold more custom nodes to undef
This will help sneak undefs past GVN into the DAG for some tests. Also add missing intrinsic for rsq_legacy, even though the node was already selected to the instruction. Also start passing the debug location to intrinsic errors. llvm-svn: 273181
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/llvm.amdgcn.ldexp.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/llvm.amdgcn.ldexp.ll10
1 files changed, 9 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.ldexp.ll b/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.ldexp.ll
index c48d52d150b..511418f8d1e 100644
--- a/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.ldexp.ll
+++ b/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.ldexp.ll
@@ -1,4 +1,4 @@
-; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
+; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
declare float @llvm.amdgcn.ldexp.f32(float, i32) nounwind readnone
@@ -42,3 +42,11 @@ define void @test_legacy_ldexp_f64(double addrspace(1)* %out, double %a, i32 %b)
store double %result, double addrspace(1)* %out, align 8
ret void
}
+
+; SI-LABEL: {{^}}test_ldexp_undef_f32:
+; SI-NOT: v_ldexp_f32
+define void @test_ldexp_undef_f32(float addrspace(1)* %out, i32 %b) nounwind {
+ %result = call float @llvm.amdgcn.ldexp.f32(float undef, i32 %b) nounwind readnone
+ store float %result, float addrspace(1)* %out, align 4
+ ret void
+}
OpenPOWER on IntegriCloud