1 ; RUN: llc < %s -mtriple=i386-apple-darwin9 | FileCheck %s -check-prefix=X32
2 ; RUN: llc < %s -mtriple=x86_64-apple-darwin9 | FileCheck %s -check-prefix=X64
4 @x = external hidden global i32 ; <i32*> [#uses=1]
5 @y = extern_weak hidden global i32 ; <i32*> [#uses=1]
7 define i32 @t() nounwind readonly {
13 ; X64: movl _y(%rip), %eax
15 %0 = load i32, i32* @x, align 4 ; <i32> [#uses=1]
16 %1 = load i32, i32* @y, align 4 ; <i32> [#uses=1]
17 %2 = add i32 %1, %0 ; <i32> [#uses=1]