Commit 5a254440 authored by Lu Yahan's avatar Lu Yahan Committed by V8 LUCI CQ

[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: 's avatarJi Qiu <qiuji@iscas.ac.cn>
Cr-Commit-Position: refs/heads/main@{#76666}
parent 9e6c10fb
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment