summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/R600/llvm.SI.sample.ll
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-02-13 23:34:07 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-02-13 23:34:07 +0000
commit60b6153044b881799ff54257bda0fd2af3f56f8c (patch)
tree2b074ff753a027479f92ff2281693bf3009f9937 /llvm/test/CodeGen/R600/llvm.SI.sample.ll
parentabba74b4eea3a47c52ecbdbf58a9115e7f8b555e (diff)
downloadbcm5719-llvm-60b6153044b881799ff54257bda0fd2af3f56f8c.tar.gz
bcm5719-llvm-60b6153044b881799ff54257bda0fd2af3f56f8c.zip
R600/SI: Add ShaderType attribute to some tests
llvm-svn: 201367
Diffstat (limited to 'llvm/test/CodeGen/R600/llvm.SI.sample.ll')
-rw-r--r--llvm/test/CodeGen/R600/llvm.SI.sample.ll6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/R600/llvm.SI.sample.ll b/llvm/test/CodeGen/R600/llvm.SI.sample.ll
index d41737c6592..24e8f640d90 100644
--- a/llvm/test/CodeGen/R600/llvm.SI.sample.ll
+++ b/llvm/test/CodeGen/R600/llvm.SI.sample.ll
@@ -17,7 +17,7 @@
;CHECK-DAG: IMAGE_SAMPLE {{v\[[0-9]+:[0-9]+\]}}, 14
;CHECK-DAG: IMAGE_SAMPLE {{v[0-9]+}}, 8
-define void @test(i32 %a1, i32 %a2, i32 %a3, i32 %a4) {
+define void @test(i32 %a1, i32 %a2, i32 %a3, i32 %a4) #0 {
%v1 = insertelement <4 x i32> undef, i32 %a1, i32 0
%v2 = insertelement <4 x i32> undef, i32 %a1, i32 1
%v3 = insertelement <4 x i32> undef, i32 %a1, i32 2
@@ -137,7 +137,7 @@ define void @test(i32 %a1, i32 %a2, i32 %a3, i32 %a4) {
; CHECK: @v1
; CHECK: IMAGE_SAMPLE {{v\[[0-9]+:[0-9]+\]}}, 15
-define void @v1(i32 %a1) {
+define void @v1(i32 %a1) #0 {
entry:
%0 = insertelement <1 x i32> undef, i32 %a1, i32 0
%1 = call <4 x float> @llvm.SI.sample.v1i32(<1 x i32> %0, <32 x i8> undef, <16 x i8> undef, i32 0)
@@ -155,3 +155,5 @@ declare <4 x float> @llvm.SI.sample.v1i32(<1 x i32>, <32 x i8>, <16 x i8>, i32)
declare <4 x float> @llvm.SI.sample.(<4 x i32>, <32 x i8>, <16 x i8>, i32) readnone
declare void @llvm.SI.export(i32, i32, i32, i32, i32, float, float, float, float)
+
+attributes #0 = { "ShaderType"="0" }
OpenPOWER on IntegriCloud