Skip to content

Commit e328d6a

Browse files
committed
use alignstack
1 parent 61ac8a0 commit e328d6a

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

llvm/test/CodeGen/NVPTX/st-param-imm.ll

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -509,12 +509,12 @@ define void @st_param_v2_f64_ri(double %val) {
509509
ret void
510510
}
511511

512-
declare void @call_v2_i8(%struct.char2)
513-
declare void @call_v2_i16(%struct.short2)
514-
declare void @call_v2_i32(%struct.int2)
515-
declare void @call_v2_i64(%struct.longlong2)
516-
declare void @call_v2_f32(%struct.float2)
517-
declare void @call_v2_f64(%struct.double2)
512+
declare void @call_v2_i8(%struct.char2 alignstack(2))
513+
declare void @call_v2_i16(%struct.short2 alignstack(4))
514+
declare void @call_v2_i32(%struct.int2 alignstack(8))
515+
declare void @call_v2_i64(%struct.longlong2 alignstack(16))
516+
declare void @call_v2_f32(%struct.float2 alignstack(8))
517+
declare void @call_v2_f64(%struct.double2 alignstack(16))
518518

519519
define void @st_param_v4_i8_iiii() {
520520
; CHECK-LABEL: st_param_v4_i8_iiii(
@@ -1996,19 +1996,7 @@ define void @st_param_v4_f32_riii(float %a) {
19961996
ret void
19971997
}
19981998

1999-
declare void @call_v4_i8(%struct.char4)
2000-
declare void @call_v4_i16(%struct.short4)
2001-
declare void @call_v4_i32(%struct.int4)
2002-
declare void @call_v4_f32(%struct.float4)
2003-
2004-
!nvvm.annotations = !{!1, !2, !3, !4, !5, !6, !7, !8, !9, !10}
2005-
!1 = !{ptr @call_v2_i8, !"align", i32 65538}
2006-
!2 = !{ptr @call_v2_i16, !"align", i32 65540}
2007-
!3 = !{ptr @call_v2_i32, !"align", i32 65544}
2008-
!4 = !{ptr @call_v2_i64, !"align", i32 65552}
2009-
!5 = !{ptr @call_v2_f32, !"align", i32 65544}
2010-
!6 = !{ptr @call_v2_f64, !"align", i32 65552}
2011-
!7 = !{ptr @call_v4_i8, !"align", i32 65540}
2012-
!8 = !{ptr @call_v4_i16, !"align", i32 65544}
2013-
!9 = !{ptr @call_v4_i32, !"align", i32 65552}
2014-
!10 = !{ptr @call_v4_f32, !"align", i32 65552}
1999+
declare void @call_v4_i8(%struct.char4 alignstack(4))
2000+
declare void @call_v4_i16(%struct.short4 alignstack(8))
2001+
declare void @call_v4_i32(%struct.int4 alignstack(16))
2002+
declare void @call_v4_f32(%struct.float4 alignstack(16))

0 commit comments

Comments
 (0)