make ptr_mask codegen test more specific

This commit is contained in:
Maybe Waffle 2022-08-09 19:51:45 +04:00
parent 553f790556
commit 55ba58cadb

View File

@ -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)
}