File tree 3 files changed +31
-0
lines changed
3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ pub struct TripleU16 {
40
40
h : u16 ,
41
41
}
42
42
#[ repr( C ) ]
43
+ pub struct DoubleI32 {
44
+ f : i32 ,
45
+ g : i32 ,
46
+ }
47
+ #[ repr( C ) ]
43
48
pub struct TripleU32 {
44
49
f : u32 ,
45
50
g : u32 ,
@@ -175,6 +180,11 @@ pub unsafe extern "C" fn f_triple_u16_arg(_a: TripleU16) {}
175
180
#[ no_mangle]
176
181
pub unsafe extern "C" fn f_triple_u32_arg ( _a : TripleU32 ) { }
177
182
183
+ // CHECK: .visible .func f_double_i32_arg(
184
+ // CHECK: .param .align 4 .b8 f_double_i32_arg_param_0[8]
185
+ #[ no_mangle]
186
+ pub unsafe extern "C" fn f_double_i32_arg ( _a : DoubleI32 ) { }
187
+
178
188
// CHECK: .visible .func f_triple_u64_arg(
179
189
// CHECK: .param .align 8 .b8 f_triple_u64_arg_param_0[24]
180
190
#[ no_mangle]
Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ pub struct TripleU16 {
40
40
h : u16 ,
41
41
}
42
42
#[ repr( C ) ]
43
+ pub struct DoubleI32 {
44
+ f : i32 ,
45
+ g : i32 ,
46
+ }
47
+ #[ repr( C ) ]
43
48
pub struct TripleU32 {
44
49
f : u32 ,
45
50
g : u32 ,
@@ -186,6 +191,12 @@ pub unsafe extern "C" fn f_triple_u16_ret() -> TripleU16 {
186
191
TripleU16 { f : 18 , g : 19 , h : 20 }
187
192
}
188
193
194
+ // CHECK: .visible .func (.param .align 4 .b8 func_retval0[8]) f_double_i32_ret(
195
+ #[ no_mangle]
196
+ pub unsafe extern "C" fn f_double_i32_ret ( ) -> DoubleI32 {
197
+ DoubleI32 { f : 1 , g : 2 }
198
+ }
199
+
189
200
// CHECK: .visible .func (.param .align 4 .b8 func_retval0[12]) f_triple_u32_ret(
190
201
#[ no_mangle]
191
202
pub unsafe extern "C" fn f_triple_u32_ret ( ) -> TripleU32 {
Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ pub struct TripleU16 {
50
50
h : u16 ,
51
51
}
52
52
#[ repr( C ) ]
53
+ pub struct DoubleI32 {
54
+ f : i32 ,
55
+ g : i32 ,
56
+ }
57
+ #[ repr( C ) ]
53
58
pub struct TripleU32 {
54
59
f : u32 ,
55
60
g : u32 ,
@@ -180,6 +185,11 @@ pub unsafe extern "ptx-kernel" fn f_triple_u8_arg(_a: TripleU8) {}
180
185
#[ no_mangle]
181
186
pub unsafe extern "ptx-kernel" fn f_triple_u16_arg ( _a : TripleU16 ) { }
182
187
188
+ // CHECK: .visible .entry f_double_i32_arg(
189
+ // CHECK: .param .align 4 .b8 f_double_i32_arg_param_0[8]
190
+ #[ no_mangle]
191
+ pub unsafe extern "ptx-kernel" fn f_double_i32_arg ( _a : DoubleI32 ) { }
192
+
183
193
// CHECK: .visible .entry f_triple_u32_arg(
184
194
// CHECK: .param .align 4 .b8 f_triple_u32_arg_param_0[12]
185
195
#[ no_mangle]
You can’t perform that action at this time.
0 commit comments