nvcl-param-align.ll 558 B

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