brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · bfb6080 Raw
39 lines · plain
1; RUN: llc -mtriple=mipsel -mattr=mips16 -relocation-model=pic < %s | FileCheck %s -check-prefix=cmp162 3target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-n32-S64"4target triple = "mipsel--linux-gnu"5 6%struct.StorablePicture = type { i32, i32, i32, i32 }7 8 9 10define void @getSubImagesLuma(ptr nocapture %s) #0 {11entry:12  %size_y = getelementptr inbounds %struct.StorablePicture, ptr %s, i32 0, i32 113  %0 = load i32, ptr %size_y, align 414  %sub = add nsw i32 %0, -115  %add5 = add nsw i32 %0, 2016  %cmp6 = icmp sgt i32 %add5, -2017  br i1 %cmp6, label %for.body, label %for.end18 19for.body:                                         ; preds = %entry, %for.body20  %j.07 = phi i32 [ %inc, %for.body ], [ -20, %entry ]21  %call = tail call i32 @iClip3(i32 0, i32 %sub, i32 %j.07) #222  %inc = add nsw i32 %j.07, 123  %1 = load i32, ptr %size_y, align 424  %add = add nsw i32 %1, 2025  %cmp = icmp slt i32 %inc, %add26  br i1 %cmp, label %for.body, label %for.end27 28for.end:                                          ; preds = %for.body, %entry29  ret void30}31 32; cmp16: 	.ent	getSubImagesLuma33; cmp16:	.end	getSubImagesLuma34declare i32 @iClip3(...) #135 36attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "use-soft-float"="false" }37attributes #1 = { "less-precise-fpmad"="false" "frame-pointer"="non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "use-soft-float"="false" }38attributes #2 = { nounwind }39