brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · 4841f56 Raw
74 lines · plain
1; RUN: llc -mtriple=hexagon -verify-machineinstrs -hexagon-initial-cfg-cleanup=0 < %s | FileCheck %s2; Verify that the code compiles successfully.3; CHECK: call printf4 5target triple = "hexagon"6 7%struct.0 = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }8 9@.str.13 = external unnamed_addr constant [60 x i8], align 110 11declare void @printf(ptr nocapture readonly, ...) local_unnamed_addr #012 13declare void @danny() local_unnamed_addr #014declare zeroext i8 @sammy() local_unnamed_addr #015 16; Function Attrs: nounwind17define void @main() local_unnamed_addr #0 {18entry:19  br i1 undef, label %if.then8, label %if.end1020 21if.then8:                                         ; preds = %entry22  ret void23 24if.end10:                                         ; preds = %entry25  br label %do.body26 27do.body:                                          ; preds = %if.end88.do.body_crit_edge, %if.end1028  %cond = icmp eq i32 undef, 029  br i1 %cond, label %if.end49, label %if.then12430 31if.end49:                                         ; preds = %do.body32  br i1 undef, label %if.end55, label %if.then5333 34if.then53:                                        ; preds = %if.end4935  call void @danny()36  br label %if.end5537 38if.end55:                                         ; preds = %if.then53, %if.end4939  %call76 = call zeroext i8 @sammy() #040  switch i8 %call76, label %sw.epilog79 [41    i8 0, label %sw.bb7742    i8 3, label %sw.bb7743  ]44 45sw.bb77:                                          ; preds = %if.end55, %if.end5546  unreachable47 48sw.epilog79:                                      ; preds = %if.end5549  br i1 undef, label %if.end88, label %if.then8150 51if.then81:                                        ; preds = %sw.epilog7952  %div87 = fdiv float 0.000000e+00, undef53  br label %if.end8854 55if.end88:                                         ; preds = %if.then81, %sw.epilog7956  %t.1 = phi float [ undef, %sw.epilog79 ], [ %div87, %if.then81 ]57  %div89 = fdiv float 1.000000e+00, %t.158  %mul92 = fmul float undef, %div8959  %div93 = fdiv float %mul92, 1.000000e+0660  %conv107 = fpext float %div93 to double61  call void (ptr, ...) @printf(ptr @.str.13, double %conv107, double undef, i64 undef, i32 undef) #062  br i1 undef, label %if.end88.do.body_crit_edge, label %if.then12463 64if.end88.do.body_crit_edge:                       ; preds = %if.end8865  br label %do.body66 67if.then124:                                       ; preds = %if.end88, %do.body68  unreachable69}70 71 72attributes #0 = { nounwind }73 74