brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 54703e3 Raw
33 lines · plain
1; RUN: llvm-as %s -o %t.o2; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \3; RUN:    -m elf_x86_64 \4; RUN:    -shared %t.o -o %t25; RUN: llvm-nm %t2 | FileCheck %s6; CHECK: T main7 8target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"9target triple = "x86_64-unknown-linux-gnu"10 11@main.L = internal unnamed_addr constant [3 x ptr] [ptr blockaddress(@main, %L1), ptr blockaddress(@main, %L2), ptr null], align 1612 13define i32 @main() #0 {14entry:15  br label %L116 17L1:                                               ; preds = %entry, %L118  %i.0 = phi i32 [ 0, %entry ], [ %inc, %L1 ]19  %inc = add i32 %i.0, 120  %idxprom = zext i32 %i.0 to i6421  %arrayidx = getelementptr inbounds [3 x ptr], ptr @main.L, i64 0, i64 %idxprom22  %0 = load ptr, ptr %arrayidx, align 8, !tbaa !123  indirectbr ptr %0, [label %L1, label %L2]24 25L2:                                               ; preds = %L126  ret i32 027}28 29!1 = !{!2, !2, i64 0}30!2 = !{!"any pointer", !3, i64 0}31!3 = !{!"omnipotent char", !4, i64 0}32!4 = !{!"Simple C/C++ TBAA"}33