|
From: | Lijun Pan |
Subject: | Re: [PATCH v3 4/8] target/ppc: add vmulld instruction |
Date: | Thu, 25 Jun 2020 16:13:54 -0500 |
Just keep "insn = mul_op[vece];" and remove" tcg_debug_assert((vece == MO_32 && have_isa_2_07) || (vece == MO_64 && have_isa_3_10));“?
something like below? " @@ -3016,6 +3016,8 @@ int tcg_can_emit_vec_op(TCGOpcode opc, TCGType type, unsigned vece) return -1; case MO_32: return have_isa_2_07 ? 1 : -1; + case MO_64: + return have_isa_3_10 ? 1 : -1; } "
something like below? @@ -3712,6 +3712,11 @@ static void tcg_target_init(TCGContext *s) have_isa = tcg_isa_3_00; } #endif +#ifdef PPC_FEATURE2_ARCH_3_10 + if (hwcap2 & PPC_FEATURE2_ARCH_3_10) { + have_isa = tcg_isa_3_10; + } +#endif +++ b/include/elf.h @@ -554,6 +554,7 @@ typedef struct { #define PPC_FEATURE2_HTM_NOSC 0x01000000 #define PPC_FEATURE2_ARCH_3_00 0x00800000 #define PPC_FEATURE2_HAS_IEEE128 0x00400000 +#define PPC_FEATURE2_ARCH_3_10 0x00200000 Thanks, Lijun |
[Prev in Thread] | Current Thread | [Next in Thread] |