• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
2
3;;; Need 4-byte alignment on float* passed byval
4define ptx_device void @t1(float* byval %x) {
5; CHECK: .func t1
6; CHECK: .param .align 4 .b8 t1_param_0[4]
7  ret void
8}
9
10
11;;; Need 8-byte alignment on double* passed byval
12define ptx_device void @t2(double* byval %x) {
13; CHECK: .func t2
14; CHECK: .param .align 8 .b8 t2_param_0[8]
15  ret void
16}
17
18
19;;; Need 4-byte alignment on float2* passed byval
20%struct.float2 = type { float, float }
21define ptx_device void @t3(%struct.float2* byval %x) {
22; CHECK: .func t3
23; CHECK: .param .align 4 .b8 t3_param_0[8]
24  ret void
25}
26