brintos

brintos / llvm-project-archived public Read only

0
0
Text · 719 B · 3f3ad26 Raw
29 lines · plain
1; RUN: llc -O2 < %s2; REQUIRES: asserts3 4target datalayout = "e-m:e-p:32:32-i64:64-a:0-v32:32-n16:32"5target triple = "hexagon"6 7; Function Attrs: nounwind optsize ssp8define internal fastcc void @foo() nounwind {9if.else473:10  %0 = load i64, ptr undef, align 811  %sub = sub nsw i64 undef, %012  %conv476 = sitofp i64 %sub to double13  %mul477 = fmul double %conv476, 0x3F50624DE000000014  br i1 undef, label %cond.true540, label %cond.end54815 16cond.true540:17  %1 = fptrunc double %mul477 to float18  %2 = fptosi float %1 to i3219  br label %cond.end54820 21cond.end548:22  %cond549 = phi i32 [ %2, %cond.true540 ], [ undef, %if.else473 ]23  call void @bar(i32 %cond549) nounwind24  unreachable25}26 27declare void @bar(i32) nounwind28 29