summaryrefslogtreecommitdiff
path: root/test/CodeGen/SPARC
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-05-19 19:14:24 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-05-19 19:14:24 +0000
commit00ce0f6512a36ff18fcd223dfebc5469e3600652 (patch)
tree7b7557aa58689dac970187d779c43467d5d40db1 /test/CodeGen/SPARC
parent675b9e9f3d567bdf1a31ce9d9ce2451ae09dc9fa (diff)
downloadllvm-00ce0f6512a36ff18fcd223dfebc5469e3600652.tar.gz
llvm-00ce0f6512a36ff18fcd223dfebc5469e3600652.tar.bz2
llvm-00ce0f6512a36ff18fcd223dfebc5469e3600652.tar.xz
Handle i64 FrameIndex nodes in SPARC v9 mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182216 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SPARC')
-rw-r--r--test/CodeGen/SPARC/64bit.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/SPARC/64bit.ll b/test/CodeGen/SPARC/64bit.ll
index 2bbf7deb16..37dcea9891 100644
--- a/test/CodeGen/SPARC/64bit.ll
+++ b/test/CodeGen/SPARC/64bit.ll
@@ -181,3 +181,13 @@ define i64 @unsigned_divide(i64 %a, i64 %b) {
%r = udiv i64 %a, %b
ret i64 %r
}
+
+define void @access_fi() {
+entry:
+ %b = alloca [32 x i8], align 1
+ %arraydecay = getelementptr inbounds [32 x i8]* %b, i64 0, i64 0
+ call void @g(i8* %arraydecay) #2
+ ret void
+}
+
+declare void @g(i8*)