brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.6 KiB · 31f3469 Raw
76 lines · plain
1; RUN: opt -debug -S -march=hexagon -O2  < %s | FileCheck %s2; REQUIRES: asserts3; CHECK: define dso_local void @complexMultAccum4target triple = "hexagon"5 6; Function Attrs: noinline nounwind7define dso_local void @complexMultAccum(i32 noundef %n) #0 {8entry:9  %n.addr = alloca i32, align 410  %run_c_code = alloca i8, align 111  %run_asm_code = alloca i8, align 112  %iOutter = alloca i32, align 413  %iOutter1 = alloca i32, align 414  store i32 %n, ptr %n.addr, align 415  store i8 1, ptr %run_c_code, align 116  store i8 0, ptr %run_asm_code, align 117  %0 = load i8, ptr %run_c_code, align 118  %tobool = icmp ne i8 %0, 019  br i1 %tobool, label %if.then, label %if.end20 21if.then:                                          ; preds = %entry22  store i32 0, ptr %iOutter, align 423  br label %for.cond24 25for.cond:                                         ; preds = %for.inc, %if.then26  %1 = load i32, ptr %iOutter, align 427  %cmp = icmp slt i32 %1, 228  br i1 %cmp, label %for.body, label %for.end29 30for.body:                                         ; preds = %for.cond31  br label %for.inc32 33for.inc:                                          ; preds = %for.body34  %2 = load i32, ptr %iOutter, align 435  %inc = add nsw i32 %2, 136  store i32 %inc, ptr %iOutter, align 437  br label %for.cond, !llvm.loop !338 39for.end:                                          ; preds = %for.cond40  store i32 0, ptr %iOutter1, align 441  br label %for.cond242 43for.cond2:                                        ; preds = %for.inc5, %for.end44  %3 = load i32, ptr %iOutter1, align 445  %cmp3 = icmp slt i32 %3, 246  br i1 %cmp3, label %for.body4, label %for.end747 48for.body4:                                        ; preds = %for.cond249  br label %for.inc550 51for.inc5:                                         ; preds = %for.body452  %4 = load i32, ptr %iOutter1, align 453  %inc6 = add nsw i32 %4, 154  store i32 %inc6, ptr %iOutter1, align 455  br label %for.cond2, !llvm.loop !556 57for.end7:                                         ; preds = %for.cond258  br label %if.end59 60if.end:                                           ; preds = %for.end7, %entry61  ret void62}63 64attributes #0 = { noinline nounwind "frame-pointer"="all" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="hexagonv79" "target-features"="+v79,-long-calls" "unsafe-fp-math"="true" }65 66!llvm.module.flags = !{!0, !1}67!llvm.ident = !{!2}68 69!0 = !{i32 1, !"wchar_size", i32 4}70!1 = !{i32 7, !"frame-pointer", i32 2}71!2 = !{!"LLVM Clang"}72!3 = distinct !{!3, !4}73!4 = !{!"llvm.loop.mustprogress"}74!5 = distinct !{!5, !4}75 76