1 ; RUN: llc -mtriple=amdgcn -mcpu=tahiti -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
2 ; RUN: llc -mtriple=amdgcn -mcpu=fiji -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
4 declare float @llvm.amdgcn.cubeid(float, float, float) #0
6 ; GCN-LABEL: {{^}}test_cubeid:
7 ; GCN: v_cubeid_f32 v{{[0-9]+}}, s{{[0-9]+}}, v{{[0-9]+}}, v{{[0-9]+}}
8 define amdgpu_kernel void @test_cubeid(ptr addrspace(1) %out, float %a, float %b, float %c) #1 {
9 %result = call float @llvm.amdgcn.cubeid(float %a, float %b, float %c)
10 store float %result, ptr addrspace(1) %out
14 attributes #0 = { nounwind readnone }
15 attributes #1 = { nounwind }