brintos

brintos / llvm-project-archived public Read only

0
0
Text · 614 B · 8527d3d Raw
17 lines · plain
1; RUN: llc < %s -mtriple=nvptx64-nvidia-nvcl -mcpu=sm_60 | FileCheck %s2; RUN: %if ptxas-sm_60 %{ llc < %s -mtriple=nvptx64-nvidia-nvcl -mcpu=sm_60 | %ptxas-verify -arch=sm_60 %}3 4target triple = "nvptx-unknown-nvcl"5 6define ptx_kernel void @foo(i64 %img, i64 %sampler, ptr align 32 %v1, ptr %v2) {7; The parameter alignment is determined by the align attribute (default 1).8; CHECK-LABEL: .entry foo(9; CHECK: .param .u64 .ptr .align 32 foo_param_210; CHECK: .param .u64 .ptr .align 1 foo_param_311  ret void12}13 14!nvvm.annotations = !{!2, !3}15!2 = !{ptr @foo, !"rdoimage", i32 0}16!3 = !{ptr @foo, !"sampler", i32 1}17