summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/hidden-vis-2.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-12-06 02:00:55 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-12-06 02:00:55 +0000
commitc3ccc1aaaf8a58a70d68d947e3b769b727d4e64f (patch)
tree76969745fe61aa7b8bf909d59bfcf7cacec63fba /test/CodeGen/ARM/hidden-vis-2.ll
parent5e600e67b11c55c204b3eec00798badc96ed720b (diff)
downloadllvm-c3ccc1aaaf8a58a70d68d947e3b769b727d4e64f.tar.gz
llvm-c3ccc1aaaf8a58a70d68d947e3b769b727d4e64f.tar.bz2
llvm-c3ccc1aaaf8a58a70d68d947e3b769b727d4e64f.tar.xz
Clean up some ARM GV asm printing out; minor fixes to match what gcc does.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/hidden-vis-2.ll')
-rw-r--r--test/CodeGen/ARM/hidden-vis-2.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/hidden-vis-2.ll b/test/CodeGen/ARM/hidden-vis-2.ll
new file mode 100644
index 0000000000..6cf69aa486
--- /dev/null
+++ b/test/CodeGen/ARM/hidden-vis-2.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldr | count 2
+
+@x = weak hidden global i32 0 ; <i32*> [#uses=1]
+
+define i32 @t() nounwind readonly {
+entry:
+ %0 = load i32* @x, align 4 ; <i32> [#uses=1]
+ ret i32 %0
+}