rust/tests/codegen/intrinsics/nontemporal.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
289 B
Rust
Raw Normal View History

// compile-flags: -O
#![feature(core_intrinsics)]
#![crate_type = "lib"]
#[no_mangle]
pub fn a(a: &mut u32, b: u32) {
// CHECK-LABEL: define{{.*}}void @a
2023-07-27 21:44:13 +00:00
// CHECK: store i32 %b, ptr %a, align 4, !nontemporal
unsafe {
std::intrinsics::nontemporal_store(a, b);
}
}