[llvm-commits] [llvm] r164949 - /llvm/trunk/test/Other/spir_cc.ll

Micah Villmow villmow at gmail.com
Mon Oct 1 10:07:51 PDT 2012


Author: mvillmow
Date: Mon Oct  1 12:07:51 2012
New Revision: 164949

URL: http://llvm.org/viewvc/llvm-project?rev=164949&view=rev
Log:
Forgot the SPIR test case.

Added:
    llvm/trunk/test/Other/spir_cc.ll

Added: llvm/trunk/test/Other/spir_cc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Other/spir_cc.ll?rev=164949&view=auto
==============================================================================
--- llvm/trunk/test/Other/spir_cc.ll (added)
+++ llvm/trunk/test/Other/spir_cc.ll Mon Oct  1 12:07:51 2012
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
+define spir_func void @foo() {
+        ret void
+}
+
+define spir_kernel void @bar() {
+        call spir_func void @foo( )
+        call spir_kernel void @bar( )
+        ret void
+}





More information about the llvm-commits mailing list