8299608: Add Register + imm32 orq to x86_64 assembler

Reviewed-by: shade, sviswanathan, kvn
This commit is contained in:
Erik Österlund 2023-01-09 10:01:26 +00:00
parent d2827ec8f7
commit a503ec2cc7
2 changed files with 8 additions and 2 deletions

View file

@ -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
@ -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);

View file

@ -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
@ -1736,6 +1736,7 @@ private:
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);