]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/nontemporal.rs
Rollup merge of #61389 - Zoxc:arena-cleanup, r=eddyb
[rust.git] / src / test / codegen / nontemporal.rs
1 // compile-flags: -O
2
3 #![feature(core_intrinsics)]
4 #![crate_type = "lib"]
5
6 #[no_mangle]
7 pub fn a(a: &mut u32, b: u32) {
8     // CHECK-LABEL: define void @a
9     // CHECK: store i32 %b, i32* %a, align 4, !nontemporal
10     unsafe {
11         std::intrinsics::nontemporal_store(a, b);
12     }
13 }