Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[WebAssembly SIMD] Support bitwise operations on Intel
https://bugs.webkit.org/show_bug.cgi?id=248639 rdar://103089683 Reviewed by Yusuke Suzuki. Adds support for SIMD bitwise operations (AND, OR, XOR, ANDN, NOT, shifts, any/all_true, bitmask/select) to the Intel macro assembler. Currently omits shifts and popcnt for i8x16 vectors, since they aren't supported natively on Intel and are pretty involved to emulate. * Source/JavaScriptCore/assembler/MacroAssemblerX86_64.h: (JSC::MacroAssemblerX86_64::compareIntegerVectorWithZero): (JSC::MacroAssemblerX86_64::vectorAnd): (JSC::MacroAssemblerX86_64::vectorAndnot): (JSC::MacroAssemblerX86_64::vectorOr): (JSC::MacroAssemblerX86_64::vectorXor): (JSC::MacroAssemblerX86_64::vectorUshl): (JSC::MacroAssemblerX86_64::vectorUshr): (JSC::MacroAssemblerX86_64::vectorSshr): (JSC::MacroAssemblerX86_64::vectorAnyTrue): (JSC::MacroAssemblerX86_64::vectorAllTrue): (JSC::MacroAssemblerX86_64::vectorNot): Deleted. * Source/JavaScriptCore/assembler/X86Assembler.h: (JSC::X86Assembler::vandps_rrr): (JSC::X86Assembler::vandpd_rrr): (JSC::X86Assembler::vorps_rrr): (JSC::X86Assembler::vorpd_rrr): (JSC::X86Assembler::vxorps_rrr): (JSC::X86Assembler::vxorpd_rrr): (JSC::X86Assembler::vandnps_rrr): (JSC::X86Assembler::vandnpd_rrr): (JSC::X86Assembler::vpmovmskb_rr): (JSC::X86Assembler::vmovmskps_rr): (JSC::X86Assembler::vmovmskpd_rr): (JSC::X86Assembler::vptest_rr): (JSC::X86Assembler::vpsllw_rrr): (JSC::X86Assembler::vpslld_rrr): (JSC::X86Assembler::vpsllq_rrr): (JSC::X86Assembler::vpsrlw_rrr): (JSC::X86Assembler::vpsrld_rrr): (JSC::X86Assembler::vpsrlq_rrr): (JSC::X86Assembler::vpsraw_rrr): (JSC::X86Assembler::vpsrad_rrr): (JSC::X86Assembler::vpsraq_rrr): (JSC::X86Assembler::andps_rr): (JSC::X86Assembler::orps_rr): * Source/JavaScriptCore/b3/air/AirLowerMacros.cpp: (JSC::B3::Air::lowerMacros): * Source/JavaScriptCore/b3/air/AirOpcode.opcodes: * Source/JavaScriptCore/wasm/WasmAirIRGenerator.cpp: (JSC::Wasm::AirIRGenerator::addSIMDI_V): (JSC::Wasm::AirIRGenerator::addSIMDV_V): (JSC::Wasm::AirIRGenerator::addConstant): (JSC::Wasm::AirIRGenerator::addSIMDShift): Canonical link: https://commits.webkit.org/257640@main
- Loading branch information
David Degazio
committed
Dec 9, 2022
1 parent
13d943d
commit 4dea5d54cd4a77e83dbf3fb6de01cc7c81d23d22
Showing
6 changed files
with
367 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.