mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 00:54:38 +02:00
8299608: Add Register + imm32 orq to x86_64 assembler
Reviewed-by: shade, sviswanathan, kvn
This commit is contained in:
parent
d2827ec8f7
commit
a503ec2cc7
2 changed files with 8 additions and 2 deletions
|
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* 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);
|
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) {
|
void Assembler::orq(Register dst, Address src) {
|
||||||
InstructionMark im(this);
|
InstructionMark im(this);
|
||||||
emit_int16(get_prefixq(src, dst), 0x0B);
|
emit_int16(get_prefixq(src, dst), 0x0B);
|
||||||
|
|
|
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* 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, int32_t imm32);
|
||||||
void orq(Address dst, Register src);
|
void orq(Address dst, Register src);
|
||||||
void orq(Register dst, int32_t imm32);
|
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, Address src);
|
||||||
void orq(Register dst, Register src);
|
void orq(Register dst, Register src);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue