brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · b833904 Raw
29 lines · plain
1; RUN: llc -mtriple=s390x-linux-gnu -mcpu=zEC12 < %s  | FileCheck %s2;3; Check that DAGCombiner doesn't cause a crash by eventually producing a4; PCREL_OFFSET node with a freeze operand.5 6@a = dso_local global [6 x [6 x [3 x i8]]] zeroinitializer, align 27@b = dso_local local_unnamed_addr global i32 0, align 48 9define void @fun(i8 noundef zeroext %g) {10; CHECK-LABEL: fun11entry:12  %agg.tmp.ensured.sroa.0 = alloca i8, align 213  %conv = zext i8 %g to i6414  %0 = inttoptr i64 %conv to ptr15  %.fr = freeze ptr getelementptr inbounds ([6 x [6 x [3 x i8]]], ptr @a, i64 0, i64 1, i64 2, i64 1)16  %cmp = icmp eq ptr %.fr, %017  %1 = load i8, ptr getelementptr inbounds ([6 x [6 x [3 x i8]]], ptr @a, i64 0, i64 5, i64 4, i64 2), align 218  %conv2 = zext i8 %1 to i3219  br i1 %cmp, label %for.cond.us, label %for.cond20 21for.cond.us:                                      ; preds = %entry, %for.cond.us22  store i32 %conv2, ptr @b, align 423  ret void24 25for.cond:                                         ; preds = %entry, %for.cond26  store i32 0, ptr @b, align 427  ret void28}29