brintos

brintos / llvm-project-archived public Read only

0
0
Text · 694 B · b5c9d1e Raw
21 lines · plain
1; RUN: llc --mtriple=loongarch32 -mattr=+d < %s2; RUN: llc --mtriple=loongarch64 -mattr=+d < %s3 4;; This should not crash the code generator.5 6@.str.2 = external dso_local unnamed_addr constant [69 x i8], align 17 8define dso_local void @main() {9entry:10  %n0 = alloca [2 x [3 x i32]], align 411  %0 = load i32, ptr poison, align 412  %idxprom15 = sext i32 %0 to i6413  %arrayidx16 = getelementptr inbounds [2 x [3 x i32]], ptr %n0, i64 0, i64 %idxprom1514  %arrayidx17 = getelementptr inbounds [3 x i32], ptr %arrayidx16, i64 0, i64 015  %1 = load i32, ptr %arrayidx17, align 416  call void (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef signext %1)17  ret void18}19 20declare void @printf(ptr, ...)21