[llvm-commits] [llvm] r57361 - /llvm/trunk/test/CodeGen/SPARC/2008-10-10-InlineAsmRegOperand.ll

Anton Korobeynikov asl at math.spbu.ru
Fri Oct 10 13:28:59 PDT 2008


Author: asl
Date: Fri Oct 10 15:28:59 2008
New Revision: 57361

URL: http://llvm.org/viewvc/llvm-project?rev=57361&view=rev
Log:
Add testcase for 'r' inline asm operand

Added:
    llvm/trunk/test/CodeGen/SPARC/2008-10-10-InlineAsmRegOperand.ll

Added: llvm/trunk/test/CodeGen/SPARC/2008-10-10-InlineAsmRegOperand.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SPARC/2008-10-10-InlineAsmRegOperand.ll?rev=57361&view=auto

==============================================================================
--- llvm/trunk/test/CodeGen/SPARC/2008-10-10-InlineAsmRegOperand.ll (added)
+++ llvm/trunk/test/CodeGen/SPARC/2008-10-10-InlineAsmRegOperand.ll Fri Oct 10 15:28:59 2008
@@ -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*)





More information about the llvm-commits mailing list