Skip to content

Commit

Permalink
8299608: Add Register + imm32 orq to x86_64 assembler
Browse files Browse the repository at this point in the history
Reviewed-by: shade, sviswanathan, kvn
  • Loading branch information
fisk committed Jan 9, 2023
1 parent d2827ec commit a503ec2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/hotspot/cpu/x86/assembler_x86.cpp
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -13453,6 +13453,11 @@ void Assembler::orq(Register dst, int32_t imm32) {
emit_arith(0x81, 0xC8, dst, imm32);
}

void Assembler::orq_imm32(Register dst, int32_t imm32) {
(void) prefixq_and_encode(dst->encoding());
emit_arith_imm32(0x81, 0xC8, dst, imm32);
}

void Assembler::orq(Register dst, Address src) {
InstructionMark im(this);
emit_int16(get_prefixq(src, dst), 0x0B);
Expand Down
3 changes: 2 additions & 1 deletion src/hotspot/cpu/x86/assembler_x86.hpp
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -1736,6 +1736,7 @@ class Assembler : public AbstractAssembler {
void orq(Address dst, int32_t imm32);
void orq(Address dst, Register src);
void orq(Register dst, int32_t imm32);
void orq_imm32(Register dst, int32_t imm32);
void orq(Register dst, Address src);
void orq(Register dst, Register src);

Expand Down

1 comment on commit a503ec2

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.