[riscv64] Using RV_li to load imm32

Bug: v8:12171
Change-Id: Icb50d5438f657f6d3c75cbc3409ccf6f1f880303
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3141263
Commit-Queue: Yahan Lu <yahan@iscas.ac.cn>
Commit-Queue: Ji Qiu <qiuji@iscas.ac.cn>
Auto-Submit: Yahan Lu <yahan@iscas.ac.cn>
Reviewed-by: Ji Qiu <qiuji@iscas.ac.cn>
Cr-Commit-Position: refs/heads/main@{#76666}
This commit is contained in:
Lu Yahan 2021-09-06 10:38:49 +08:00 committed by V8 LUCI CQ
parent 9e6c10fb81
commit 5a25444006

View File

@ -1823,8 +1823,7 @@ TEST(jump_tables1) {
for (int i = 0; i < kNumCases; ++i) {
__ bind(&labels[i]);
__ lui(a0, (values[i] + 0x800) >> 12);
__ addi(a0, a0, (values[i] << 20 >> 20));
__ RV_li(a0, values[i]);
__ j(&done);
}
@ -1860,8 +1859,7 @@ TEST(jump_tables2) {
for (int i = 0; i < kNumCases; ++i) {
__ bind(&labels[i]);
__ lui(a0, (values[i] + 0x800) >> 12);
__ addi(a0, a0, (values[i] << 20 >> 20));
__ RV_li(a0, values[i]);
__ j(&done);
}