Jingyue Wu | e4c9cf0 | 2014-12-17 17:59:04 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s |
| 2 | |
| 3 | target triple = "nvptx-unknown-nvcl" |
| 4 | |
| 5 | ; CHECK-LABEL: .entry foo( |
| 6 | define void @foo(i64 %img, i64 %sampler, <5 x float>* %v) { |
| 7 | ; The parameter alignment should be the next power of 2 of 5xsizeof(float), |
| 8 | ; which is 32. |
| 9 | ; CHECK: .param .u32 .ptr .align 32 foo_param_2 |
| 10 | ret void |
| 11 | } |
| 12 | |
| 13 | !nvvm.annotations = !{!1, !2, !3} |
| 14 | !1 = !{void (i64, i64, <5 x float>*)* @foo, !"kernel", i32 1} |
| 15 | !2 = !{void (i64, i64, <5 x float>*)* @foo, !"rdoimage", i32 0} |
| 16 | !3 = !{void (i64, i64, <5 x float>*)* @foo, !"sampler", i32 1} |