1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mtriple=i386-apple-darwin9 | FileCheck %s --check-prefix=i386-darwin9 3; RUN: llc < %s -mtriple=x86_64-apple-darwin9 | FileCheck %s --check-prefix=x86_64-darwin9 4 5@x = weak hidden global i32 0 ; <ptr> [#uses=1] 6 7define i32 @t() nounwind readonly { 8; i386-darwin9-LABEL: t: 9; i386-darwin9: ## %bb.0: ## %entry 10; i386-darwin9-NEXT: movl _x, %eax 11; i386-darwin9-NEXT: retl 12; 13; x86_64-darwin9-LABEL: t: 14; x86_64-darwin9: ## %bb.0: ## %entry 15; x86_64-darwin9-NEXT: movl _x(%rip), %eax 16; x86_64-darwin9-NEXT: retq 17entry: 18 %0 = load i32, ptr @x, align 4 ; <i32> [#uses=1] 19 ret i32 %0 20} 21