Home | History | Annotate | Download | only in PowerPC
      1 ; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 < %s
      2 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
      3 target triple = "powerpc64-unknown-linux-gnu"
      4 
      5 @g_62 = external global [1 x [9 x i32]], align 4
      6 
      7 ; Function Attrs: nounwind
      8 define void @main() #0 {
      9 entry:
     10   br i1 undef, label %cond.true, label %for.cond1.preheader.i
     11 
     12 cond.true:                                        ; preds = %entry
     13   br label %for.cond1.preheader.i
     14 
     15 for.cond1.preheader.i:                            ; preds = %for.cond1.preheader.i, %cond.true, %entry
     16   br i1 undef, label %crc32_gentab.exit, label %for.cond1.preheader.i
     17 
     18 crc32_gentab.exit:                                ; preds = %for.cond1.preheader.i
     19   %tobool.i19.i.i = icmp eq i32 undef, 0
     20   %retval.0.i.i.i = select i1 %tobool.i19.i.i, i32* getelementptr inbounds ([1 x [9 x i32]]* @g_62, i64 0, i64 0, i64 6), i32* getelementptr inbounds ([1 x [9 x i32]]* @g_62, i64 0, i64 0, i64 8)
     21   br label %for.cond1.preheader.i2961.i
     22 
     23 for.cond1.preheader.i2961.i:                      ; preds = %for.inc44.i2977.i, %crc32_gentab.exit
     24   call void @llvm.memset.p0i8.i64(i8* bitcast ([1 x [9 x i32]]* @g_62 to i8*), i8 -1, i64 36, i32 4, i1 false) #1
     25   %0 = load i32* %retval.0.i.i.i, align 4, !tbaa !0
     26   %tobool.i2967.i = icmp eq i32 %0, 0
     27   br label %for.body21.i2968.i
     28 
     29 for.body21.i2968.i:                               ; preds = %safe_mod_func_int32_t_s_s.exit.i2974.i, %for.cond1.preheader.i2961.i
     30   br i1 %tobool.i2967.i, label %safe_mod_func_int32_t_s_s.exit.i2974.i, label %for.inc44.i2977.i
     31 
     32 safe_mod_func_int32_t_s_s.exit.i2974.i:           ; preds = %for.body21.i2968.i
     33   br i1 undef, label %for.body21.i2968.i, label %for.inc44.i2977.i
     34 
     35 for.inc44.i2977.i:                                ; preds = %safe_mod_func_int32_t_s_s.exit.i2974.i, %for.body21.i2968.i
     36   br i1 undef, label %func_80.exit2978.i, label %for.cond1.preheader.i2961.i
     37 
     38 func_80.exit2978.i:                               ; preds = %for.inc44.i2977.i
     39   unreachable
     40 }
     41 
     42 ; Function Attrs: nounwind
     43 declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1) #1
     44 
     45 attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "ssp-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
     46 attributes #1 = { nounwind }
     47 
     48 !0 = metadata !{metadata !"int", metadata !1}
     49 !1 = metadata !{metadata !"omnipotent char", metadata !2}
     50 !2 = metadata !{metadata !"Simple C/C++ TBAA"}
     51