Skip to content

Commit c7944ed

Browse files
feilongjiangRealFYang
authored andcommitted
8279565: riscv: RVB: Add byte reverse instruction
Reviewed-by: fyang
1 parent 78f48a2 commit c7944ed

File tree

10 files changed

+979
-967
lines changed

10 files changed

+979
-967
lines changed

src/hotspot/cpu/riscv/assembler_riscv.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, Red Hat Inc. All rights reserved.
4-
* Copyright (c) 2020, 2021, Huawei Technologies Co., Ltd. All rights reserved.
4+
* Copyright (c) 2020, 2022, Huawei Technologies Co., Ltd. All rights reserved.
55
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
66
*
77
* This code is free software; you can redistribute it and/or modify it
@@ -79,6 +79,10 @@ void Assembler::subw(Register Rd, Register Rn, int64_t decrement, Register temp)
7979
}
8080
}
8181

82+
void Assembler::zext_w(Register Rd, Register Rs) {
83+
add_uw(Rd, Rs, zr);
84+
}
85+
8286
void Assembler::li(Register Rd, int64_t imm) {
8387
// int64_t is in range 0x8000 0000 0000 0000 ~ 0x7fff ffff ffff ffff
8488
int shift = 12;

0 commit comments

Comments
 (0)