Rollup merge of #114957 - loongarch-rs:fix-tests, r=Mark-Simulacrum

tests: Fix tests for LoongArch64

This PR fixes `lp64d abi` tests for LoongArch64.
This commit is contained in:
Matthias Krüger 2023-08-27 09:45:18 +02:00 committed by GitHub
commit ce7993670b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,11 +250,11 @@ pub struct IntDoubleInt {
c: i32,
}
// CHECK: define void @f_int_double_int_s_arg(ptr noalias nocapture noundef dereferenceable(24) %a)
// CHECK: define void @f_int_double_int_s_arg(ptr noalias nocapture noundef align 8 dereferenceable(24) %a)
#[no_mangle]
pub extern "C" fn f_int_double_int_s_arg(a: IntDoubleInt) {}
// CHECK: define void @f_ret_int_double_int_s(ptr noalias nocapture noundef sret(%IntDoubleInt) dereferenceable(24) %0)
// CHECK: define void @f_ret_int_double_int_s(ptr noalias nocapture noundef sret(%IntDoubleInt) align 8 dereferenceable(24) %_0)
#[no_mangle]
pub extern "C" fn f_ret_int_double_int_s() -> IntDoubleInt {
IntDoubleInt { a: 1, b: 2., c: 3 }