Skip to content

Commit

Permalink
Enable necessary target feature for intrinsic
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Jan 9, 2025
1 parent 8076eb1 commit ac90c32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/wasmtime/src/runtime/vm/libcalls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1301,8 +1301,9 @@ pub mod relocs {
#[cfg(target_arch = "x86_64")]
use core::arch::x86_64::__m128i;
#[cfg(target_arch = "x86_64")]
#[target_feature(enable = "sse")]
#[allow(improper_ctypes_definitions)]
pub extern "C" fn x86_pshufb(a: __m128i, b: __m128i) -> __m128i {
pub unsafe extern "C" fn x86_pshufb(a: __m128i, b: __m128i) -> __m128i {
union U {
reg: __m128i,
mem: [u8; 16],
Expand Down

0 comments on commit ac90c32

Please sign in to comment.