Skip to content

Commit a503ec2

Browse files
committed
8299608: Add Register + imm32 orq to x86_64 assembler
Reviewed-by: shade, sviswanathan, kvn
1 parent d2827ec commit a503ec2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/hotspot/cpu/x86/assembler_x86.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -13453,6 +13453,11 @@ void Assembler::orq(Register dst, int32_t imm32) {
1345313453
emit_arith(0x81, 0xC8, dst, imm32);
1345413454
}
1345513455

13456+
void Assembler::orq_imm32(Register dst, int32_t imm32) {
13457+
(void) prefixq_and_encode(dst->encoding());
13458+
emit_arith_imm32(0x81, 0xC8, dst, imm32);
13459+
}
13460+
1345613461
void Assembler::orq(Register dst, Address src) {
1345713462
InstructionMark im(this);
1345813463
emit_int16(get_prefixq(src, dst), 0x0B);

src/hotspot/cpu/x86/assembler_x86.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -1736,6 +1736,7 @@ class Assembler : public AbstractAssembler {
17361736
void orq(Address dst, int32_t imm32);
17371737
void orq(Address dst, Register src);
17381738
void orq(Register dst, int32_t imm32);
1739+
void orq_imm32(Register dst, int32_t imm32);
17391740
void orq(Register dst, Address src);
17401741
void orq(Register dst, Register src);
17411742

0 commit comments

Comments
 (0)