]>
Commit | Line | Data |
---|---|---|
ff7c6d11 XL |
1 | // compile-flags: -O |
2 | ||
3 | #![feature(core_intrinsics)] | |
4 | #![crate_type = "lib"] | |
85aaf69f | 5 | |
ff7c6d11 XL |
6 | #[no_mangle] |
7 | pub fn a(a: &mut u32, b: u32) { | |
cdc7bbd5 | 8 | // CHECK-LABEL: define{{.*}}void @a |
923072b8 | 9 | // CHECK: store i32 %b, {{i32\*|ptr}} %a, align 4, !nontemporal |
ff7c6d11 XL |
10 | unsafe { |
11 | std::intrinsics::nontemporal_store(a, b); | |
ea8adc8c XL |
12 | } |
13 | } |