1 ; RUN: llc --mtriple=loongarch32 -mattr=+d < %s
2 ; RUN: llc --mtriple=loongarch64 -mattr=+d < %s
4 ;; This should not crash the code generator.
6 define void @_ZN12_GLOBAL__N_111DumpVisitorclIN4llvm16itanium_demangle8FoldExprEEEvPKT_() {
8 %ref.tmp6.i.i = alloca [4 x i8], align 1
11 for.cond.i.i: ; preds = %for.body.i.i, %entry
12 %__begin0.0.add.i.i = add nuw nsw i64 poison, 1
13 br label %for.body.i.i
15 for.body.i.i: ; preds = %for.cond.i.i
16 %__begin0.0.ptr.i.i = getelementptr inbounds i8, ptr %ref.tmp6.i.i, i64 %__begin0.0.add.i.i
17 %0 = load i8, ptr %__begin0.0.ptr.i.i, align 1
18 %tobool18.not.i.i = icmp eq i8 %0, 0
19 br i1 %tobool18.not.i.i, label %for.cond.i.i, label %exit
21 exit: ; preds = %for.body.i.i