23 lines · plain
1; RUN: llc -mtriple=amdgcn -mcpu=tahiti < %s | FileCheck -check-prefix=GCN %s2; RUN: llc -mtriple=amdgcn -mcpu=tonga < %s | FileCheck -check-prefix=GCN %s3 4 5; GCN-LABEL: {{^}}shader_cc:6; GCN: v_add_{{[iu]}}32_e32 v0, vcc, s8, v07define amdgpu_cs float @shader_cc(<4 x i32> inreg, <4 x i32> inreg, i32 inreg %w, float %v) {8 %vi = bitcast float %v to i329 %x = add i32 %vi, %w10 %xf = bitcast i32 %x to float11 ret float %xf12}13 14; GCN-LABEL: {{^}}kernel_cc:15; GCN: s_endpgm16define amdgpu_kernel void @kernel_cc(<4 x i32> inreg, <4 x i32> inreg, i32 inreg %w, float %v) {17 %vi = bitcast float %v to i3218 %x = add i32 %vi, %w19 %xf = bitcast i32 %x to float20 store float %xf, ptr addrspace(1) poison21 ret void22}23