diff options
author | Gil Pitney <gil.pitney@linaro.org> | 2014-10-28 18:00:42 -0700 |
---|---|---|
committer | Gil Pitney <gil.pitney@linaro.org> | 2014-10-28 18:00:42 -0700 |
commit | 61b2c94d9e64758e55730be6a3fc9006c171db85 (patch) | |
tree | f564f09ebf93ba293dfa225bd374df6f1f37aa01 /tests/vector_args.spir.ll |
Initial Commit: Based on TI OpenCL v0.8, originally based on clover.shamrock_v0.8
This is a continuation of the clover OpenCL project:
http://people.freedesktop.org/~steckdenis/clover
based on the contributions from Texas Instruments for Keystone II DSP device:
git.ti.com/opencl
and adding contributions from Linaro for ARM CPU-only support.
See README.txt for more info, and build instructions.
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
Diffstat (limited to 'tests/vector_args.spir.ll')
-rw-r--r-- | tests/vector_args.spir.ll | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/vector_args.spir.ll b/tests/vector_args.spir.ll new file mode 100644 index 0000000..9054f68 --- /dev/null +++ b/tests/vector_args.spir.ll @@ -0,0 +1,45 @@ +; ModuleID = 'vector_args.bc' +target datalayout = "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024" +target triple = "spir-unknown-unknown-unkown" + +; Function Attrs: nounwind readnone +define void @test_kernel(i8 signext %c, i8 zeroext %uc, i16 signext %s, i16 zeroext %us, i32 %i, i32 %ui, float %f, float addrspace(1)* nocapture %result) #0 { +entry: + ret void +} + +; Function Attrs: nounwind readnone +define void @test_kernel2(<2 x i8> %c, <2 x i8> %uc, <2 x i16> %s, <2 x i16> %us, <2 x i32> %i, <2 x i32> %ui, <2 x float> %f, <2 x float> addrspace(1)* nocapture %result) #0 { +entry: + ret void +} + +; Function Attrs: nounwind readnone +define void @test_kernel4(<4 x i8> %c, <4 x i8> %uc, <4 x i16> %s, <4 x i16> %us, <4 x i32> %i, <4 x i32> %ui, <4 x float> %f, <4 x float> addrspace(1)* nocapture %result) #0 { +entry: + ret void +} + +; Function Attrs: nounwind readnone +define void @test_kernel8(<8 x i8> %c, <8 x i8> %uc, <8 x i16> %s, <8 x i16> %us, <8 x i32> %i, <8 x i32> %ui, <8 x float> %f, <8 x float> addrspace(1)* nocapture %result) #0 { +entry: + ret void +} + +; Function Attrs: nounwind readnone +define void @test_kernel16(<16 x i8> %c, <16 x i8> %uc, <16 x i16> %s, <16 x i16> %us, <16 x i32> %i, <16 x i32> %ui, <16 x float> %f, <16 x float> addrspace(1)* nocapture %result) #0 { +entry: + ret void +} + +attributes #0 = { nounwind readnone "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } + +!opencl.kernels = !{!0, !1, !2, !3, !4} +!llvm.ident = !{!5} + +!0 = metadata !{void (i8, i8, i16, i16, i32, i32, float, float addrspace(1)*)* @test_kernel} +!1 = metadata !{void (<2 x i8>, <2 x i8>, <2 x i16>, <2 x i16>, <2 x i32>, <2 x i32>, <2 x float>, <2 x float> addrspace(1)*)* @test_kernel2} +!2 = metadata !{void (<4 x i8>, <4 x i8>, <4 x i16>, <4 x i16>, <4 x i32>, <4 x i32>, <4 x float>, <4 x float> addrspace(1)*)* @test_kernel4} +!3 = metadata !{void (<8 x i8>, <8 x i8>, <8 x i16>, <8 x i16>, <8 x i32>, <8 x i32>, <8 x float>, <8 x float> addrspace(1)*)* @test_kernel8} +!4 = metadata !{void (<16 x i8>, <16 x i8>, <16 x i16>, <16 x i16>, <16 x i32>, <16 x i32>, <16 x float>, <16 x float> addrspace(1)*)* @test_kernel16} +!5 = metadata !{metadata !"clang version 3.6.0 (http://llvm.org/git/clang.git 01adae8f440672196da28be6fce2bb4acf8ab40b) (http://llvm.org/git/llvm.git f7be7f15c1ff2882719f823fbe270e48bb0f4340)"} |