diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-09-03 07:04:02 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-09-03 07:04:02 +0000 |
commit | 63476a80404125e5196b6c09113c1d4796da0604 (patch) | |
tree | 74b29b42a6080d47fbc235781bd751ac8279a3ed /test/CodeGen/X86/hidden-vis-3.ll | |
parent | 8aa9fba7cbc9ed58a0f5e32ad5e54c3bb984b3e4 (diff) | |
download | external_llvm-63476a80404125e5196b6c09113c1d4796da0604.zip external_llvm-63476a80404125e5196b6c09113c1d4796da0604.tar.gz external_llvm-63476a80404125e5196b6c09113c1d4796da0604.tar.bz2 |
Reference to hidden symbols do not have to go through non-lazy pointer in non-pic mode. rdar://7187172.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80904 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/hidden-vis-3.ll')
-rw-r--r-- | test/CodeGen/X86/hidden-vis-3.ll | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/CodeGen/X86/hidden-vis-3.ll b/test/CodeGen/X86/hidden-vis-3.ll index 81dc76e..efa7b69 100644 --- a/test/CodeGen/X86/hidden-vis-3.ll +++ b/test/CodeGen/X86/hidden-vis-3.ll @@ -1,13 +1,17 @@ -; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin9 | grep mov | count 3 -; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin9 | grep non_lazy_ptr -; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin9 | grep long | count 2 -; RUN: llvm-as < %s | llc -mtriple=x86_64-apple-darwin9 | not grep GOT +; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin9 | FileCheck %s -check-prefix=X32 +; RUN: llvm-as < %s | llc -mtriple=x86_64-apple-darwin9 | FileCheck %s -check-prefix=X64 @x = external hidden global i32 ; <i32*> [#uses=1] @y = extern_weak hidden global i32 ; <i32*> [#uses=1] define i32 @t() nounwind readonly { entry: +; X32: _t: +; X32: movl _y, %eax + +; X64: _t: +; X64: movl _y(%rip), %eax + %0 = load i32* @x, align 4 ; <i32> [#uses=1] %1 = load i32* @y, align 4 ; <i32> [#uses=1] %2 = add i32 %1, %0 ; <i32> [#uses=1] |