summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorMicah Villmow <villmow@gmail.com>2012-10-01 17:07:51 +0000
committerMicah Villmow <villmow@gmail.com>2012-10-01 17:07:51 +0000
commitf611fcf2c3ab16e6d2367fe41e356b6794d38f37 (patch)
tree5f1f99f394d1b46f28d5a782c44370ba2f37eab1 /llvm/test
parent48c8ddc0395453fdf2eae200ec6d7cf6e2f0c292 (diff)
downloadbcm5719-llvm-f611fcf2c3ab16e6d2367fe41e356b6794d38f37.tar.gz
bcm5719-llvm-f611fcf2c3ab16e6d2367fe41e356b6794d38f37.zip
Forgot the SPIR test case.
llvm-svn: 164949
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Other/spir_cc.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Other/spir_cc.ll b/llvm/test/Other/spir_cc.ll
new file mode 100644
index 00000000000..ffc02945de4
--- /dev/null
+++ b/llvm/test/Other/spir_cc.ll
@@ -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
+}
OpenPOWER on IntegriCloud