[opengtl-commits] [296] add test case of know llvm failure (2.2 failure, even if the test pass on 2.3, it seems vectors instructions and JIT are still problematic) |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 296
Author: cyrille
Date: 2008-07-02 00:26:17 +0200 (Wed, 02 Jul 2008)
Log Message:
-----------
add test case of know llvm failure (2.2 failure, even if the test pass on 2.3, it seems vectors instructions and JIT are still problematic)
Added Paths:
-----------
trunk/OpenGTL/sdk/testllvm/
trunk/OpenGTL/sdk/testllvm/testVectorStruct.ll
Added: trunk/OpenGTL/sdk/testllvm/testVectorStruct.ll
===================================================================
--- trunk/OpenGTL/sdk/testllvm/testVectorStruct.ll (rev 0)
+++ trunk/OpenGTL/sdk/testllvm/testVectorStruct.ll 2008-07-01 22:26:17 UTC (rev 296)
@@ -0,0 +1,22 @@
+; llvm-as -f testVectorStruct.ll ; llvm-ld testVectorStruct.bc; ./a.out
+; lli testVectorStruct.bc
+
+define internal void @_func31({ <4 x float> }*) {
+ alloca <4 x float> ; <<4 x float>*>:2 [#uses=1]
+ alloca <4 x float> ; <<4 x float>*>:3 [#uses=1]
+ load <4 x float>* %3 ; <<4 x float>>:4 [#uses=1]
+ volatile store <4 x float> %4, <4 x float>* %2
+ ret void
+}
+
+
+define i32 @main(i32 signext %argc, i8** %argv) {
+entry:
+ %src = alloca <4 x i32>
+ %dst = alloca <4 x i32>
+ %tmp = load <4 x i32>* %src
+ volatile store <4 x i32> %tmp, <4 x i32>* %dst
+ %mys = alloca { <4 x float> }
+ tail call void @_func31( { <4 x float> }* %mys )
+ ret i32 1
+}