Skip to content

Commit e2200b9

Browse files
authored
Unrolled build for #149773
Rollup merge of #149773 - fneddy:fix_test_va_list_signext, r=Mark-Simulacrum fix va_list test by adding a llvmir signext check s390x has no option to directly pass 32bit values therefor i32 parameters need an optional llvmir signext attribute.
2 parents 08de25c + e0c09b5 commit e2200b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/codegen-llvm/cffi/c-variadic-va_list.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ pub unsafe extern "C" fn use_foreign_c_variadic_1_0(ap: VaList) {
2222

2323
// CHECK-LABEL: use_foreign_c_variadic_1_1
2424
pub unsafe extern "C" fn use_foreign_c_variadic_1_1(ap: VaList) {
25-
// CHECK: call void ({{.*}}, ...) @foreign_c_variadic_1({{.*}} %ap, i32 noundef 42)
25+
// CHECK: call void ({{.*}}, ...) @foreign_c_variadic_1({{.*}} %ap, i32 noundef{{( signext)?}} 42)
2626
foreign_c_variadic_1(ap, 42i32);
2727
}
2828
pub unsafe extern "C" fn use_foreign_c_variadic_1_2(ap: VaList) {
29-
// CHECK: call void ({{.*}}, ...) @foreign_c_variadic_1({{.*}} %ap, i32 noundef 2, i32 noundef 42)
29+
// CHECK: call void ({{.*}}, ...) @foreign_c_variadic_1({{.*}} %ap, i32 noundef{{( signext)?}} 2, i32 noundef{{( signext)?}} 42)
3030
foreign_c_variadic_1(ap, 2i32, 42i32);
3131
}
3232

3333
pub unsafe extern "C" fn use_foreign_c_variadic_1_3(ap: VaList) {
34-
// CHECK: call void ({{.*}}, ...) @foreign_c_variadic_1({{.*}} %ap, i32 noundef 2, i32 noundef 42, i32 noundef 0)
34+
// CHECK: call void ({{.*}}, ...) @foreign_c_variadic_1({{.*}} %ap, i32 noundef{{( signext)?}} 2, i32 noundef{{( signext)?}} 42, i32 noundef{{( signext)?}} 0)
3535
foreign_c_variadic_1(ap, 2i32, 42i32, 0i32);
3636
}

0 commit comments

Comments
 (0)