adapt a codegen test for llvm 19
No functional changes intended. Found by our experimental rust + LLVM @ HEAD bot: https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/27747#018f2570-018c-4b12-9c5a-38cf81453683/957-965
This commit is contained in:
parent
90846015cc
commit
52ea73a540
@ -47,7 +47,7 @@ pub unsafe fn read_byte_assume_init(p: &MaybeUninit<u8>) -> u8 {
|
|||||||
p.assume_init_read()
|
p.assume_init_read()
|
||||||
}
|
}
|
||||||
|
|
||||||
// CHECK-LABEL: define {{(dso_local )?}}noundef i32 @copy_char(
|
// CHECK-LABEL: define {{(dso_local )?}}noundef {{(range\(.*\) )?}}i32 @copy_char(
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe fn copy_char(p: *const char) -> char {
|
pub unsafe fn copy_char(p: *const char) -> char {
|
||||||
// CHECK-NOT: load
|
// CHECK-NOT: load
|
||||||
@ -58,7 +58,7 @@ pub unsafe fn copy_char(p: *const char) -> char {
|
|||||||
*p
|
*p
|
||||||
}
|
}
|
||||||
|
|
||||||
// CHECK-LABEL: define {{(dso_local )?}}noundef i32 @read_char(
|
// CHECK-LABEL: define {{(dso_local )?}}noundef {{(range\(.*\) )?}}i32 @read_char(
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe fn read_char(p: *const char) -> char {
|
pub unsafe fn read_char(p: *const char) -> char {
|
||||||
// CHECK-NOT: load
|
// CHECK-NOT: load
|
||||||
@ -80,7 +80,7 @@ pub unsafe fn read_char_maybe_uninit(p: *const MaybeUninit<char>) -> MaybeUninit
|
|||||||
p.read()
|
p.read()
|
||||||
}
|
}
|
||||||
|
|
||||||
// CHECK-LABEL: define {{(dso_local )?}}noundef i32 @read_char_assume_init(
|
// CHECK-LABEL: define {{(dso_local )?}}noundef {{(range\(.*\) )?}}i32 @read_char_assume_init(
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe fn read_char_assume_init(p: &MaybeUninit<char>) -> char {
|
pub unsafe fn read_char_assume_init(p: &MaybeUninit<char>) -> char {
|
||||||
// CHECK-NOT: load
|
// CHECK-NOT: load
|
||||||
|
Loading…
Reference in New Issue
Block a user