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
[RISCV64] Add MacroAssemblerRISCV64 operations for testing, comparison
https://bugs.webkit.org/show_bug.cgi?id=234630 Patch by Zan Dobersek <zdobersek@igalia.com> on 2021-12-28 Reviewed by Yusuke Suzuki. Add MacroAssemblerRISCV64 implementations for the different variants of compare and test instructions. For comparisons, the implementations set up the two values in separate registers and perform the comparison per the inquired relation, writing out the result into the destination register. For tests, the two values are set up and put through the bitwise AND, with the result evaluated and the destination register filled out according to the inquired result condition. * assembler/MacroAssemblerRISCV64.h: (JSC::MacroAssemblerRISCV64::compare8): (JSC::MacroAssemblerRISCV64::compare32): (JSC::MacroAssemblerRISCV64::compare64): (JSC::MacroAssemblerRISCV64::test8): (JSC::MacroAssemblerRISCV64::test32): (JSC::MacroAssemblerRISCV64::test64): (JSC::MacroAssemblerRISCV64::compareFinalize): (JSC::MacroAssemblerRISCV64::testFinalize): Canonical link: https://commits.webkit.org/245602@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@287467 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
commit-queue@webkit.org
committed
Dec 28, 2021
1 parent
a42b9ab
commit f804a6915c24dba9625c90798a6f1d7bd196a512
Showing
2 changed files
with
193 additions
and
7 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