]> git.lizzy.rs Git - rust.git/blob - tests/assembly/x86_64-sse_crc.rs
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / assembly / x86_64-sse_crc.rs
1 // only-x86_64
2 // assembly-output: emit-asm
3 // compile-flags: --crate-type staticlib -Ctarget-feature=+sse4.2
4
5 // CHECK-LABEL: banana
6 // CHECK: crc32
7 #[no_mangle]
8 pub unsafe fn banana(v: u8) -> u32 {
9     use std::arch::x86_64::*;
10     let out = !0u32;
11     _mm_crc32_u8(out, v)
12 }