[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 14/73] target/i386: Use tcg_op_supported
From: |
Richard Henderson |
Subject: |
[PATCH 14/73] target/i386: Use tcg_op_supported |
Date: |
Thu, 2 Jan 2025 10:05:54 -0800 |
Do not reference TCG_TARGET_HAS_* directly.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/i386/tcg/emit.c.inc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/target/i386/tcg/emit.c.inc b/target/i386/tcg/emit.c.inc
index a2b940a5c3..00f7a6123a 100644
--- a/target/i386/tcg/emit.c.inc
+++ b/target/i386/tcg/emit.c.inc
@@ -24,9 +24,9 @@
* The exact opcode to check depends on 32- vs. 64-bit.
*/
#ifdef TARGET_X86_64
-#define TCG_TARGET_HAS_extract2_tl TCG_TARGET_HAS_extract2_i64
+#define INDEX_op_extract2_tl INDEX_op_extract2_i64
#else
-#define TCG_TARGET_HAS_extract2_tl TCG_TARGET_HAS_extract2_i32
+#define INDEX_op_extract2_tl INDEX_op_extract2_i32
#endif
#define MMX_OFFSET(reg) \
@@ -2993,7 +2993,7 @@ static void gen_PMOVMSKB(DisasContext *s, X86DecodedInsn
*decode)
tcg_gen_ld8u_tl(s->T0, tcg_env, offsetof(CPUX86State, xmm_t0.ZMM_B(vec_len
- 1)));
while (vec_len > 8) {
vec_len -= 8;
- if (TCG_TARGET_HAS_extract2_tl) {
+ if (tcg_op_supported(INDEX_op_extract2_tl, TCG_TYPE_TL)) {
/*
* Load the next byte of the result into the high byte of T.
* TCG does a similar expansion of deposit to shl+extract2; by
--
2.43.0
- [PATCH 22/73] tcg: Merge TCG_TARGET_HAS_{andc,orc,nand,nor,eqv,not}, (continued)
- [PATCH 22/73] tcg: Merge TCG_TARGET_HAS_{andc,orc,nand,nor,eqv,not}, Richard Henderson, 2025/01/02
- [PATCH 17/73] tcg/tci: Move TCI specific opcodes to tcg-target-opc.h.inc, Richard Henderson, 2025/01/02
- [PATCH 07/73] tcg: Add TCGType argument to tcg_op_supported, Richard Henderson, 2025/01/02
- [PATCH 18/73] tcg: Move fallback tcg_can_emit_vec_op out of line, Richard Henderson, 2025/01/02
- [PATCH 23/73] tcg/mips: Expand bswap unconditionally, Richard Henderson, 2025/01/02
- [PATCH 13/73] target/i386: Use tcg_op_deposit_valid, Richard Henderson, 2025/01/02
- [PATCH 14/73] target/i386: Use tcg_op_supported,
Richard Henderson <=
- [PATCH 32/73] tcg/aarch64: Provide TCG_TARGET_{s}extract_valid, Richard Henderson, 2025/01/02
- [PATCH 33/73] tcg/aarch64: Expand extract with offset 0 with andi, Richard Henderson, 2025/01/02
- [PATCH 28/73] tcg: Merge TCG_TARGET_HAS_{add2,sub2}, Richard Henderson, 2025/01/02
- [PATCH 06/73] tcg: Move call abi parameters from tcg-target.h to tcg-target.c.inc, Richard Henderson, 2025/01/02
- [PATCH 09/73] target/arm: Use tcg_op_supported, Richard Henderson, 2025/01/02
- [PATCH 21/73] tcg: Merge TCG_TARGET_HAS_{div,rem,div2}, Richard Henderson, 2025/01/02