92 lines · plain
1; RUN: llc -mtriple=r600 -mcpu=cayman -stress-sched -verify-misched < %s2; REQUIRES: asserts3 4define amdgpu_kernel void @main() #0 {5main_body:6 %tmp = load <4 x float>, ptr addrspace(9) null7 %tmp5 = extractelement <4 x float> %tmp, i32 38 %tmp6 = fptosi float %tmp5 to i329 %tmp7 = bitcast i32 %tmp6 to float10 %tmp8 = bitcast float %tmp7 to i3211 %tmp9 = sdiv i32 %tmp8, 412 %tmp10 = bitcast i32 %tmp9 to float13 %tmp11 = bitcast float %tmp10 to i3214 %tmp12 = mul i32 %tmp11, 415 %tmp13 = bitcast i32 %tmp12 to float16 %tmp14 = bitcast float %tmp13 to i3217 %tmp15 = sub i32 0, %tmp1418 %tmp16 = bitcast i32 %tmp15 to float19 %tmp17 = bitcast float %tmp7 to i3220 %tmp18 = bitcast float %tmp16 to i3221 %tmp19 = add i32 %tmp17, %tmp1822 %tmp20 = bitcast i32 %tmp19 to float23 %tmp21 = load <4 x float>, ptr addrspace(9) null24 %tmp22 = extractelement <4 x float> %tmp21, i32 025 %tmp23 = load <4 x float>, ptr addrspace(9) null26 %tmp24 = extractelement <4 x float> %tmp23, i32 127 %tmp25 = load <4 x float>, ptr addrspace(9) null28 %tmp26 = extractelement <4 x float> %tmp25, i32 229 br label %LOOP30 31LOOP: ; preds = %IF31, %main_body32 %temp12.0 = phi float [ 0.000000e+00, %main_body ], [ %tmp47, %IF31 ]33 %temp6.0 = phi float [ %tmp26, %main_body ], [ %temp6.1, %IF31 ]34 %temp5.0 = phi float [ %tmp24, %main_body ], [ %temp5.1, %IF31 ]35 %temp4.0 = phi float [ %tmp22, %main_body ], [ %temp4.1, %IF31 ]36 %tmp27 = bitcast float %temp12.0 to i3237 %tmp28 = bitcast float %tmp10 to i3238 %tmp29 = icmp sge i32 %tmp27, %tmp2839 %tmp30 = sext i1 %tmp29 to i3240 %tmp31 = bitcast i32 %tmp30 to float41 %tmp32 = bitcast float %tmp31 to i3242 %tmp33 = icmp ne i32 %tmp32, 043 br i1 %tmp33, label %IF, label %LOOP2944 45IF: ; preds = %LOOP46 %max.0.i = call float @llvm.maxnum.f32(float %temp4.0, float 0.000000e+00)47 %clamp.i = call float @llvm.minnum.f32(float %max.0.i, float 1.000000e+00)48 %max.0.i3 = call float @llvm.maxnum.f32(float %temp5.0, float 0.000000e+00)49 %clamp.i4 = call float @llvm.minnum.f32(float %max.0.i3, float 1.000000e+00)50 %max.0.i1 = call float @llvm.maxnum.f32(float %temp6.0, float 0.000000e+00)51 %clamp.i2 = call float @llvm.minnum.f32(float %max.0.i1, float 1.000000e+00)52 %tmp34 = insertelement <4 x float> poison, float %clamp.i, i32 053 %tmp35 = insertelement <4 x float> %tmp34, float %clamp.i4, i32 154 %tmp36 = insertelement <4 x float> %tmp35, float %clamp.i2, i32 255 %tmp37 = insertelement <4 x float> %tmp36, float 1.000000e+00, i32 356 call void @llvm.r600.store.swizzle(<4 x float> %tmp37, i32 0, i32 0)57 ret void58 59LOOP29: ; preds = %ENDIF30, %LOOP60 %temp6.1 = phi float [ %temp4.1, %ENDIF30 ], [ %temp6.0, %LOOP ]61 %temp5.1 = phi float [ %temp6.1, %ENDIF30 ], [ %temp5.0, %LOOP ]62 %temp4.1 = phi float [ %temp5.1, %ENDIF30 ], [ %temp4.0, %LOOP ]63 %temp20.0 = phi float [ %tmp50, %ENDIF30 ], [ 0.000000e+00, %LOOP ]64 %tmp38 = bitcast float %temp20.0 to i3265 %tmp39 = bitcast float %tmp20 to i3266 %tmp40 = icmp sge i32 %tmp38, %tmp3967 %tmp41 = sext i1 %tmp40 to i3268 %tmp42 = bitcast i32 %tmp41 to float69 %tmp43 = bitcast float %tmp42 to i3270 %tmp44 = icmp ne i32 %tmp43, 071 br i1 %tmp44, label %IF31, label %ENDIF3072 73IF31: ; preds = %LOOP2974 %tmp45 = bitcast float %temp12.0 to i3275 %tmp46 = add i32 %tmp45, 176 %tmp47 = bitcast i32 %tmp46 to float77 br label %LOOP78 79ENDIF30: ; preds = %LOOP2980 %tmp48 = bitcast float %temp20.0 to i3281 %tmp49 = add i32 %tmp48, 182 %tmp50 = bitcast i32 %tmp49 to float83 br label %LOOP2984}85 86declare void @llvm.r600.store.swizzle(<4 x float>, i32, i32) #087declare float @llvm.minnum.f32(float, float) #188declare float @llvm.maxnum.f32(float, float) #189 90attributes #0 = { nounwind }91attributes #1 = { nounwind readnone }92