brintos

brintos / llvm-project-archived public Read only

0
0
Text · 539 B · 0a5f525 Raw
19 lines · plain
1; RUN: llc < %s -relocation-model=dynamic-no-pic -mtriple=arm-apple-darwin9   | FileCheck %s2 3@x = external hidden global i32		; <ptr> [#uses=1]4@y = extern_weak hidden global i32	; <ptr> [#uses=1]5 6define i32 @t() nounwind readonly {7entry:8; CHECK: LCPI0_0:9; CHECK-NEXT: .long _x10;; .long _y can be used if @y is dso_local.11; CHECK: LCPI0_1:12; CHECK-NEXT: .long L_y$non_lazy_ptr13 14	%0 = load i32, ptr @x, align 4		; <i32> [#uses=1]15	%1 = load i32, ptr @y, align 4		; <i32> [#uses=1]16	%2 = add i32 %1, %0		; <i32> [#uses=1]17	ret i32 %218}19