summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/hidden-vis-3.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-09-03 07:04:02 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-09-03 07:04:02 +0000
commit63476a80404125e5196b6c09113c1d4796da0604 (patch)
tree74b29b42a6080d47fbc235781bd751ac8279a3ed /test/CodeGen/ARM/hidden-vis-3.ll
parent8aa9fba7cbc9ed58a0f5e32ad5e54c3bb984b3e4 (diff)
downloadllvm-63476a80404125e5196b6c09113c1d4796da0604.tar.gz
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/ARM/hidden-vis-3.ll')
-rw-r--r--test/CodeGen/ARM/hidden-vis-3.ll9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/CodeGen/ARM/hidden-vis-3.ll b/test/CodeGen/ARM/hidden-vis-3.ll
index 4477f2a441a1..1e88ce94eff0 100644
--- a/test/CodeGen/ARM/hidden-vis-3.ll
+++ b/test/CodeGen/ARM/hidden-vis-3.ll
@@ -1,12 +1,15 @@
-; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldr | count 6
-; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep non_lazy_ptr
-; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep long | count 4
+; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin9 | FileCheck %s
@x = external hidden global i32 ; <i32*> [#uses=1]
@y = extern_weak hidden global i32 ; <i32*> [#uses=1]
define i32 @t() nounwind readonly {
entry:
+; CHECK: LCPI1_0:
+; CHECK-NEXT: .long _x
+; CHECK: LCPI1_1:
+; CHECK-NEXT: .long _y
+
%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]