[opengtl-commits] [436] add a llvm test for vector return

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 436
Author:   cyrille
Date:     2008-10-10 00:01:19 +0200 (Fri, 10 Oct 2008)

Log Message:
-----------
add a llvm test for vector return

Added Paths:
-----------
    trunk/OpenGTL/sdk/testllvm/testReturnVector.ll


Added: trunk/OpenGTL/sdk/testllvm/testReturnVector.ll
===================================================================
--- trunk/OpenGTL/sdk/testllvm/testReturnVector.ll	                        (rev 0)
+++ trunk/OpenGTL/sdk/testllvm/testReturnVector.ll	2008-10-09 22:01:19 UTC (rev 436)
@@ -0,0 +1,14 @@
+; llvm-as -f testReturnVector.ll ; llvm-ld testReturnVector.bc; ./a.out
+; lli testReturnVector.bc
+
+define linkonce <3 x float> @_getV0() {
+  insertelement <3 x float> zeroinitializer, float 0.000000e+00, i32 0    ; <<3 x float>>:1 [#uses=1]
+  insertelement <3 x float> %1, float 1.000000e+00, i32 1   ; <<3 x float>>:2 [#uses=1]
+  insertelement <3 x float> %2, float 2.000000e+00, i32 2   ; <<3 x float>>:3 [#uses=1]
+  ret <3 x float> %3
+}
+
+define i32 @main(i32 signext  %argc, i8** %argv) {
+  tail call <3 x float> @_getV0( )
+  ret i32 1
+}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/