2019-12-09 23:47:47 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
|
|
; RUN: llc < %s -mtriple=i386-apple-darwin9 | FileCheck %s --check-prefix=i386-darwin9
|
|
|
|
; RUN: llc < %s -mtriple=x86_64-apple-darwin9 | FileCheck %s --check-prefix=x86_64-darwin9
|
2008-12-04 09:56:50 +08:00
|
|
|
|
|
|
|
@x = weak hidden global i32 0 ; <i32*> [#uses=1]
|
|
|
|
|
|
|
|
define i32 @t() nounwind readonly {
|
2019-12-09 23:47:47 +08:00
|
|
|
; i386-darwin9-LABEL: t:
|
|
|
|
; i386-darwin9: ## %bb.0: ## %entry
|
|
|
|
; i386-darwin9-NEXT: movl _x, %eax
|
|
|
|
; i386-darwin9-NEXT: retl
|
|
|
|
;
|
|
|
|
; x86_64-darwin9-LABEL: t:
|
|
|
|
; x86_64-darwin9: ## %bb.0: ## %entry
|
2021-06-12 04:26:17 +08:00
|
|
|
; x86_64-darwin9-NEXT: movl _x(%rip), %eax
|
2019-12-09 23:47:47 +08:00
|
|
|
; x86_64-darwin9-NEXT: retq
|
2008-12-04 09:56:50 +08:00
|
|
|
entry:
|
2015-02-28 05:17:42 +08:00
|
|
|
%0 = load i32, i32* @x, align 4 ; <i32> [#uses=1]
|
2008-12-04 09:56:50 +08:00
|
|
|
ret i32 %0
|
|
|
|
}
|