summaryrefslogtreecommitdiff
path: root/test/CodeGen/SPARC
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-10-10 20:28:59 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-10-10 20:28:59 +0000
commit22df84a33787c9ef67bf9834cb84f294182cfe82 (patch)
tree3d4f8c0009e6541c420383b6f05d1e25bfb7dc02 /test/CodeGen/SPARC
parentf03c5afc814b52eb0681821e63b12573a762c077 (diff)
downloadllvm-22df84a33787c9ef67bf9834cb84f294182cfe82.tar.gz
llvm-22df84a33787c9ef67bf9834cb84f294182cfe82.tar.bz2
llvm-22df84a33787c9ef67bf9834cb84f294182cfe82.tar.xz
Add testcase for 'r' inline asm operand
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SPARC')
-rw-r--r--test/CodeGen/SPARC/2008-10-10-InlineAsmRegOperand.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/SPARC/2008-10-10-InlineAsmRegOperand.ll b/test/CodeGen/SPARC/2008-10-10-InlineAsmRegOperand.ll
new file mode 100644
index 0000000000..aaa7bde683
--- /dev/null
+++ b/test/CodeGen/SPARC/2008-10-10-InlineAsmRegOperand.ll
@@ -0,0 +1,14 @@
+; RUN: llvm-as < %s | llc -march=sparc
+; PR 1557
+
+target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-f128:128:128"
+module asm "\09.section\09\22.ctors\22,#alloc,#write"
+module asm "\09.section\09\22.dtors\22,#alloc,#write"
+
+define void @frame_dummy() nounwind {
+entry:
+ %asmtmp = tail call void (i8*)* (void (i8*)*)* asm "", "=r,0"(void (i8*)* @_Jv_RegisterClasses) nounwind ; <void (i8*)*> [#uses=0]
+ unreachable
+}
+
+declare void @_Jv_RegisterClasses(i8*)