brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · c7ac603 Raw
31 lines · plain
1; RUN: llc -mtriple=hexagon < %s2; REQUIRES: asserts3 4target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"5target triple = "hexagon"6 7define weak_odr hidden i32 @fred(ptr %this, ptr nocapture readonly dereferenceable(4) %__k) #0 align 2 {8entry:9  %call = tail call i64 @danny(ptr %this, ptr nonnull dereferenceable(4) %__k) #210  %__p.sroa.0.0.extract.trunc = trunc i64 %call to i3211  br i1 undef, label %for.end, label %for.body12 13for.body:                                         ; preds = %for.body, %entry14  %__p.sroa.0.018 = phi i32 [ %call8, %for.body ], [ %__p.sroa.0.0.extract.trunc, %entry ]15  %call8 = tail call i32 @sammy(ptr %this, i32 %__p.sroa.0.018) #216  %0 = inttoptr i32 %call8 to ptr17  %lnot.i = icmp eq ptr %0, undef18  br i1 %lnot.i, label %for.end, label %for.body19 20for.end:                                          ; preds = %for.body, %entry21  ret i32 022}23 24declare hidden i64 @danny(ptr, ptr nocapture readonly dereferenceable(4)) #1 align 225declare hidden i32 @sammy(ptr nocapture, i32) #0 align 226 27attributes #0 = { nounwind optsize "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="hexagonv60" "target-features"="+hvx,+hvx-length64b" "unsafe-fp-math"="false" "use-soft-float"="false" }28attributes #1 = { nounwind optsize readonly "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="hexagonv60" "target-features"="+hvx,+hvx-length64b" "unsafe-fp-math"="false" "use-soft-float"="false" }29attributes #2 = { optsize }30 31