brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · 3304c3a Raw
58 lines · plain
1; RUN: llc -verify-machineinstrs -O0 < %s | FileCheck %s2target datalayout = "e-m:e-i64:64-n32:64"3target triple = "powerpc64le-unknown-linux-gnu"4 5@c = external global i32, align 46@d = external global [2 x i32], align 47 8; Function Attrs: norecurse nounwind9define void @fn2() #0 {10; CHECK-LABEL: @fn211  br i1 undef, label %1, label %1012 131:                                                ; preds = %014  br i1 undef, label %3, label %215 162:                                                ; preds = %2, %117  br i1 undef, label %3, label %218 193:                                                ; preds = %2, %120  br i1 undef, label %8, label %421 224:                                                ; preds = %4, %323  %5 = phi i64 [ %6, %4 ], [ undef, %3 ]24  %constexpr = getelementptr inbounds [2 x i32], ptr @d, i64 0, i64 125  %constexpr1 = icmp eq ptr %constexpr, @c26  %constexpr2 = zext i1 %constexpr1 to i3227  %constexpr3 = getelementptr inbounds [2 x i32], ptr @d, i64 0, i64 128  %constexpr4 = icmp eq ptr %constexpr3, @c29  %constexpr5 = zext i1 %constexpr4 to i3230  %constexpr6 = lshr i32 %constexpr5, 631  %constexpr7 = getelementptr inbounds [2 x i32], ptr @d, i64 0, i64 132  %constexpr8 = icmp eq ptr %constexpr7, @c33  %constexpr9 = zext i1 %constexpr8 to i1634  %constexpr10 = icmp slt i16 %constexpr9, 035  %constexpr11 = select i1 %constexpr10, i32 %constexpr2, i32 %constexpr636  %constexpr112 = sext i32 %constexpr11 to i6437  %constexpr213 = and i64 %constexpr112, %constexpr11238  %constexpr314 = and i64 %constexpr213, %constexpr11239  %constexpr415 = and i64 %constexpr314, %constexpr11240  %constexpr516 = and i64 %constexpr415, %constexpr11241  %constexpr617 = and i64 %constexpr516, %constexpr11242  %constexpr718 = and i64 %constexpr617, %constexpr11243  %constexpr819 = and i64 %constexpr718, %constexpr11244  %6 = and i64 %5, %constexpr81945  %7 = icmp slt i32 undef, 646  br i1 %7, label %4, label %847 488:                                                ; preds = %4, %349  %9 = phi i64 [ undef, %3 ], [ %6, %4 ]50  br label %1051 5210:                                               ; preds = %8, %053  ret void54}55 56attributes #0 = { norecurse nounwind "target-cpu"="ppc64le" }57 58