mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
make ptr_mask
codegen test more specific
This commit is contained in:
parent
553f790556
commit
55ba58cadb
@ -1,7 +1,11 @@
|
||||
#![crate_type = "lib"]
|
||||
#![feature(core_intrinsics)]
|
||||
|
||||
// CHECK-LABEL: @mask_ptr
|
||||
// CHECK-SAME: [[WORD:i[0-9]+]] %mask
|
||||
#[no_mangle]
|
||||
pub fn mask_ptr(ptr: *const u8, mask: usize) -> *const u8 {
|
||||
// CHECK: llvm.ptrmask
|
||||
// CHECK: call
|
||||
// CHECK-SAME: @llvm.ptrmask.p0isVoid.[[WORD]](
|
||||
core::intrinsics::ptr_mask(ptr, mask)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user