Add several Power ISA 3.1 32/64-bit vector instructions
v2 cover Add several Power ISA 3.1 32/64-bit vector instructions
This patch series add several newly introduced 32/64-bit vector instructions in Power ISA 3.1. Power ISA 3.1 flag is introduced in this version. Coding style issues are fixed in this version.
Lijun Pan (7):
target/ppc: Introduce Power ISA 3.1 flag target/ppc: add byte-reverse br[dwh] instructions target/ppc: add vmulld instruction target/ppc: add vmulh{su}w instructions
fix the prototype of muls64/mulu64 target/ppc: add vmulh{su}d instructions target/ppc: add vdiv{su}{wd} vmod{su}{wd} instructions
include/qemu/host-utils.h | 4 +- target/ppc/cpu.h | 4 +- target/ppc/helper.h | 13 ++++++ target/ppc/int_helper.c | 58 +++++++++++++++++++++++++ target/ppc/translate.c | 65 +++++++++++++++++++++++++++++ target/ppc/translate/vmx-impl.inc.c | 24 +++++++++++ target/ppc/translate/vmx-ops.inc.c | 27 ++++++++++-- target/ppc/translate_init.inc.c | 2 +- 8 files changed, 189 insertions(+), 8 deletions(-)
Signature · 1 line
2.23.0
PATCH v2 1/7 target/ppc: Introduce Power ISA 3.1 flag
This flag will be used for Power10 instructions.
---
v2: add Power ISA 3.1 flag
target/ppc/cpu.h | 4 +++- target/ppc/translate_init.inc.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-)
target/ppc/cpu.h +3 -1
@@ -2191,6 +2191,8 @@ enum {PPC2_PM_ISA206 =0x0000000000040000ULL ,/* POWER ISA 3.0 */ PPC2_ISA300 =0x0000000000080000ULL , +/* POWER ISA 3.1 */ +PPC2_ISA310 =0x0000000000100000ULL , #define PPC_TCG_INSNS2 (PPC2_BOOKE206 | PPC2_VSX | PPC2_PRCNTL | PPC2_DBRX | \ PPC2_ISA205 | PPC2_VSX207 | PPC2_PERM_ISA206 | \
@@ -2199,7 +2201,7 @@ enum {PPC2_BCTAR_ISA207 |PPC2_LSQ_ISA207 | \PPC2_ALTIVEC_207 |PPC2_ISA207S |PPC2_DFP | \PPC2_FP_CVT_S64 |PPC2_TM |PPC2_PM_ISA206 | \ - PPC2_ISA300) + PPC2_ISA300 | PPC2_ISA310) };/*****************************************************************************/
target/ppc/translate_init.inc.c +1 -1
@@ -9206,7 +9206,7 @@ POWERPC_FAMILY(POWER10)(ObjectClass *oc, void *data)PPC2_FP_TST_ISA206 |PPC2_BCTAR_ISA207 |PPC2_LSQ_ISA207 |PPC2_ALTIVEC_207 |PPC2_ISA205 |PPC2_ISA207S |PPC2_FP_CVT_S64 | -PPC2_TM |PPC2_ISA300 |PPC2_PRCNTL ; +PPC2_TM |PPC2_ISA300 |PPC2_PRCNTL |PPC2_ISA310 ; pcc->msr_mask = (1ull <<MSR_SF ) | (1ull <<MSR_HV ) | (1ull << MSR_TM) |
Signature · 1 line
2.23.0
PATCH v2 2/7 target/ppc: add byte-reverse br[dwh] instructions
In reply to Lijun PanPOWER ISA 3.1 introduces following byte-reverse instructions:
brd: Byte-Reverse Doubleword X-form
brw: Byte-Reverse Word X-form
brh: Byte-Reverse Halfword X-form
---
v2: fix coding style
use Power ISA 3.1 flag
target/ppc/translate.c | 62 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+)
target/ppc/translate.c +62 -0
@@ -6971,7 +6971,69 @@ static void gen_dform3D(DisasContext *ctx)return gen_invalid (ctx); } +/* brd */ +static void gen_brd (DisasContext *ctx) +{ +TCGv_i64 temp =tcg_temp_new_i64 (); + +tcg_gen_bswap64_i64 (temp, cpu_gpr[rS (ctx->opcode)]); + tcg_gen_st_i64(temp, cpu_env, offsetof(CPUPPCState, gpr[rA(ctx->opcode)])); + +tcg_temp_free_i64 (temp); +} + +/* brw */ +static void gen_brw (DisasContext *ctx) +{ +TCGv_i64 temp =tcg_temp_new_i64 (); +TCGv_i64 lsb =tcg_temp_new_i64 (); +TCGv_i64 msb =tcg_temp_new_i64 (); + +tcg_gen_movi_i64 (lsb,0x00000000ffffffffull ); +tcg_gen_and_i64 (temp, lsb, cpu_gpr[rS (ctx->opcode)]); +tcg_gen_bswap32_i64 (lsb, temp); + +tcg_gen_shri_i64 (msb, cpu_gpr[rS (ctx->opcode)],32 ); +tcg_gen_bswap32_i64 (temp, msb); +tcg_gen_shli_i64 (msb, temp,32 ); + +tcg_gen_or_i64 (temp, lsb, msb); + + tcg_gen_st_i64(temp, cpu_env, offsetof(CPUPPCState, gpr[rA(ctx->opcode)])); + +tcg_temp_free_i64 (temp); +tcg_temp_free_i64 (lsb); +tcg_temp_free_i64 (msb); +} + +/* brh */ +static void gen_brh (DisasContext *ctx) +{ +TCGv_i64 temp =tcg_temp_new_i64 (); +TCGv_i64 t0 =tcg_temp_new_i64 (); +TCGv_i64 t1 =tcg_temp_new_i64 (); +TCGv_i64 t2 =tcg_temp_new_i64 (); +TCGv_i64 t3 =tcg_temp_new_i64 (); + +tcg_gen_movi_i64 (t0,0x00ff00ff00ff00ffull ); +tcg_gen_shri_i64 (t1, cpu_gpr[rS (ctx->opcode)],8 ); +tcg_gen_and_i64 (t2, t1, t0); +tcg_gen_and_i64 (t1, cpu_gpr[rS (ctx->opcode)], t0); +tcg_gen_shli_i64 (t1, t1,8 ); +tcg_gen_or_i64 (temp, t1, t2); + tcg_gen_st_i64(temp, cpu_env, offsetof(CPUPPCState, gpr[rA(ctx->opcode)])); + +tcg_temp_free_i64 (temp); +tcg_temp_free_i64 (t0); +tcg_temp_free_i64 (t1); +tcg_temp_free_i64 (t2); +tcg_temp_free_i64 (t3); +} +static opcode_t opcodes[] = { +GEN_HANDLER_E (brd,0x1F ,0x1B ,0x05 ,0x0000F801 ,PPC_NONE ,PPC2_ISA310 ), +GEN_HANDLER_E (brw,0x1F ,0x1B ,0x04 ,0x0000F801 ,PPC_NONE ,PPC2_ISA310 ), +GEN_HANDLER_E (brh,0x1F ,0x1B ,0x06 ,0x0000F801 ,PPC_NONE ,PPC2_ISA310 ),GEN_HANDLER (invalid,0x00 ,0x00 ,0x00 ,0xFFFFFFFF ,PPC_NONE ),GEN_HANDLER (cmp,0x1F ,0x00 ,0x00 ,0x00400000 ,PPC_INTEGER ),GEN_HANDLER (cmpi,0x0B ,0xFF ,0xFF ,0x00400000 ,PPC_INTEGER ),
Signature · 1 line
2.23.0
PATCH v2 3/7 target/ppc: add vmulld instruction
In reply to Lijun Panvmulld: Vector Multiply Low Doubleword.
---
v2: fix coding style
use Power ISA 3.1 flag
target/ppc/helper.h | 1 + target/ppc/int_helper.c | 1 + target/ppc/translate/vmx-impl.inc.c | 1 + target/ppc/translate/vmx-ops.inc.c | 4 ++++ 4 files changed, 7 insertions(+)
target/ppc/helper.h +1 -0
@@ -185,6 +185,7 @@ DEF_HELPER_3(vmuloub, void, avr, avr, avr) DEF_HELPER_3(vmulouh, void, avr, avr, avr) DEF_HELPER_3(vmulouw, void, avr, avr, avr) DEF_HELPER_3(vmuluwm, void, avr, avr, avr) +DEF_HELPER_3(vmulld, void, avr, avr, avr) DEF_HELPER_3(vslo, void, avr, avr, avr) DEF_HELPER_3(vsro, void, avr, avr, avr)DEF_HELPER_3 (vsrv, void, avr, avr, avr)
target/ppc/int_helper.c +1 -0
@@ -533,6 +533,7 @@ void helper_vprtybq(ppc_avr_t *r, ppc_avr_t *b) } \ } VARITH_DO(muluwm, *, u32) +VARITH_DO(mulld, *, s64)#undef VARITH_DO#undef VARITH
target/ppc/translate/vmx-impl.inc.c +1 -0
@@ -807,6 +807,7 @@ GEN_VXFORM_DUAL(vmulouw, PPC_ALTIVEC, PPC_NONE,GEN_VXFORM (vmulosb,4 ,4 );GEN_VXFORM (vmulosh,4 ,5 );GEN_VXFORM (vmulosw,4 ,6 ); +GEN_VXFORM (vmulld,4 ,7 );GEN_VXFORM (vmuleub,4 ,8 );GEN_VXFORM (vmuleuh,4 ,9 );GEN_VXFORM (vmuleuw,4 ,10 );
target/ppc/translate/vmx-ops.inc.c +4 -0
@@ -48,6 +48,9 @@ GEN_HANDLER_E(name, 0x04, opc2, opc3, inval, PPC_NONE, PPC2_ISA300)GEN_HANDLER_E_2 (name,0x04 , opc2, opc3, opc4,0x00000000 ,PPC_NONE , \ PPC2_ISA300) +#define GEN_VXFORM_310 (name, opc2, opc3) \ +GEN_HANDLER_E(name, 0x04, opc2, opc3, 0x00000000, PPC_NONE, PPC2_ISA310) +#define GEN_VXFORM_DUAL (name0, name1, opc2, opc3, type0, type1) \ GEN_HANDLER_E(name0##_##name1, 0x4, opc2, opc3, 0x00000000, type0, type1)
@@ -104,6 +107,7 @@ GEN_VXFORM_DUAL(vmulouw, vmuluwm, 4, 2, PPC_ALTIVEC, PPC_NONE),GEN_VXFORM (vmulosb,4 ,4 ),GEN_VXFORM (vmulosh,4 ,5 ),GEN_VXFORM_207 (vmulosw,4 ,6 ), +GEN_VXFORM_310 (vmulld,4 ,7 ),GEN_VXFORM (vmuleub,4 ,8 ),GEN_VXFORM (vmuleuh,4 ,9 ), GEN_VXFORM_207(vmuleuw, 4, 10),
Signature · 1 line
2.23.0
PATCH v2 4/7 target/ppc: add vmulh{su}w instructions
In reply to Lijun Panvmulhsw: Vector Multiply High Signed Word
vmulhuw: Vector Multiply High Unsigned Word
---
v2: fix coding style
use Power ISA 3.1 flag
target/ppc/helper.h | 2 ++ target/ppc/int_helper.c | 14 ++++++++++++++ target/ppc/translate/vmx-impl.inc.c | 6 ++++++ target/ppc/translate/vmx-ops.inc.c | 4 ++-- 4 files changed, 24 insertions(+), 2 deletions(-)
target/ppc/helper.h +2 -0
@@ -186,6 +186,8 @@ DEF_HELPER_3(vmulouh, void, avr, avr, avr) DEF_HELPER_3(vmulouw, void, avr, avr, avr) DEF_HELPER_3(vmuluwm, void, avr, avr, avr) DEF_HELPER_3(vmulld, void, avr, avr, avr) +DEF_HELPER_3(vmulhsw, void, avr, avr, avr) +DEF_HELPER_3(vmulhuw, void, avr, avr, avr) DEF_HELPER_3(vslo, void, avr, avr, avr) DEF_HELPER_3(vsro, void, avr, avr, avr)DEF_HELPER_3 (vsrv, void, avr, avr, avr)
target/ppc/int_helper.c +14 -0
@@ -523,6 +523,20 @@ void helper_vprtybq(ppc_avr_t *r, ppc_avr_t *b) r->VsrD (0 ) =0 ; } +#define VMULH_DO (name, op, element, cast_orig, cast_temp) \ + void helper_vmulh##name(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) \ + { \ + int i; \ + \ + for (i = 0; i < ARRAY_SIZE(r->element); i++) { \ + r->element[i] = (cast_orig)(((cast_temp)a->element[i] op \ + (cast_temp)b->element[i]) >> 32); \ + } \ + } +VMULH_DO(sw, *, s32, int32_t, int64_t) +VMULH_DO(uw, *, u32, uint32_t, uint64_t) +#undef VMULH_DO +#define VARITH_DO (name, op, element) \ void helper_v##name(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) \ { \
target/ppc/translate/vmx-impl.inc.c +6 -0
@@ -811,9 +811,15 @@ GEN_VXFORM(vmulld, 4, 7);GEN_VXFORM (vmuleub,4 ,8 );GEN_VXFORM (vmuleuh,4 ,9 );GEN_VXFORM (vmuleuw,4 ,10 ); +GEN_VXFORM (vmulhuw,4 ,10 ); +GEN_VXFORM_DUAL (vmuleuw,PPC_ALTIVEC ,PPC_NONE , + vmulhuw,PPC_NONE ,PPC2_ISA310 );GEN_VXFORM (vmulesb,4 ,12 );GEN_VXFORM (vmulesh,4 ,13 );GEN_VXFORM (vmulesw,4 ,14 ); +GEN_VXFORM (vmulhsw,4 ,14 ); +GEN_VXFORM_DUAL (vmulesw,PPC_ALTIVEC ,PPC_NONE , + vmulhsw,PPC_NONE ,PPC2_ISA310 );GEN_VXFORM_V (vslb,MO_8 , tcg_gen_gvec_shlv,2 ,4 );GEN_VXFORM_V (vslh,MO_16 , tcg_gen_gvec_shlv,2 ,5 );GEN_VXFORM_V (vslw,MO_32 , tcg_gen_gvec_shlv,2 ,6 );
target/ppc/translate/vmx-ops.inc.c +2 -2
@@ -110,10 +110,10 @@ GEN_VXFORM_207(vmulosw, 4, 6),GEN_VXFORM_310 (vmulld,4 ,7 ),GEN_VXFORM (vmuleub,4 ,8 ),GEN_VXFORM (vmuleuh,4 ,9 ), -GEN_VXFORM_207 (vmuleuw,4 ,10 ), +GEN_VXFORM_DUAL (vmuleuw, vmulhuw,4 ,10 ,PPC_ALTIVEC ,PPC_NONE ),GEN_VXFORM (vmulesb,4 ,12 ),GEN_VXFORM (vmulesh,4 ,13 ), -GEN_VXFORM_207 (vmulesw,4 ,14 ), +GEN_VXFORM_DUAL (vmulesw, vmulhsw,4 ,14 ,PPC_ALTIVEC ,PPC_NONE ),GEN_VXFORM (vslb,2 ,4 ),GEN_VXFORM (vslh,2 ,5 ), GEN_VXFORM_DUAL(vslw, vrlwnm, 2, 6, PPC_ALTIVEC, PPC_NONE),
Signature · 1 line
2.23.0
PATCH v2 5/7 fix the prototype of muls64/mulu64
In reply to Lijun PanThe prototypes of muls64/mulu64 in host-utils.h should match the definitions in host-utils.c
---
v2: no change
include/qemu/host-utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/qemu/host-utils.h +2 -2
@@ -77,8 +77,8 @@ static inline int divs128(int64_t *plow, int64_t *phigh, int64_t divisor) } }#else -void muls64 (uint64_t *phigh,uint64_t *plow,int64_t a,int64_t b); -void mulu64 (uint64_t *phigh,uint64_t *plow,uint64_t a,uint64_t b); +void muls64 (uint64_t *plow,uint64_t *phigh,int64_t a,int64_t b); +void mulu64 (uint64_t *plow,uint64_t *phigh,uint64_t a,uint64_t b);int divu128 (uint64_t *plow,uint64_t *phigh,uint64_t divisor);int divs128 (int64_t *plow,int64_t *phigh,int64_t divisor);
Signature · 1 line
2.23.0
PATCH v2 6/7 target/ppc: add vmulh{su}d instructions
In reply to Lijun Panvmulhsd: Vector Multiply High Signed Doubleword
vmulhud: Vector Multiply High Unsigned Doubleword
---
v2: fix coding style
use Power ISA 3.1 flag
target/ppc/helper.h | 2 ++ target/ppc/int_helper.c | 24 ++++++++++++++++++++++++ target/ppc/translate/vmx-impl.inc.c | 2 ++ target/ppc/translate/vmx-ops.inc.c | 2 ++ 4 files changed, 30 insertions(+)
target/ppc/helper.h +2 -0
@@ -188,6 +188,8 @@ DEF_HELPER_3(vmuluwm, void, avr, avr, avr) DEF_HELPER_3(vmulld, void, avr, avr, avr) DEF_HELPER_3(vmulhsw, void, avr, avr, avr) DEF_HELPER_3(vmulhuw, void, avr, avr, avr) +DEF_HELPER_3(vmulhsd, void, avr, avr, avr) +DEF_HELPER_3(vmulhud, void, avr, avr, avr) DEF_HELPER_3(vslo, void, avr, avr, avr) DEF_HELPER_3(vsro, void, avr, avr, avr)DEF_HELPER_3 (vsrv, void, avr, avr, avr)
target/ppc/int_helper.c +24 -0
@@ -523,6 +523,30 @@ void helper_vprtybq(ppc_avr_t *r, ppc_avr_t *b) r->VsrD (0 ) =0 ; } +void helper_vmulhsd (ppc_avr_t *r,ppc_avr_t *a,ppc_avr_t *b) +{ +int i; +uint64_t h64 =0 ; +uint64_t l64 =0 ; + +for (i =0 ; i <2 ; i++) { +muls64 (&l64, &h64, a->s64[i], b->s64[i]); + r->s64[i] = h64; + } +} + +void helper_vmulhud (ppc_avr_t *r,ppc_avr_t *a,ppc_avr_t *b) +{ +int i; +uint64_t h64 =0 ; +uint64_t l64 =0 ; + +for (i =0 ; i <2 ; i++) { +mulu64 (&l64, &h64, a->s64[i], b->s64[i]); + r->u64[i] = h64; + } +} +#define VMULH_DO (name, op, element, cast_orig, cast_temp) \ void helper_vmulh##name(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) \ { \
target/ppc/translate/vmx-impl.inc.c +2 -0
@@ -812,6 +812,7 @@ GEN_VXFORM(vmuleub, 4, 8);GEN_VXFORM (vmuleuh,4 ,9 );GEN_VXFORM (vmuleuw,4 ,10 );GEN_VXFORM (vmulhuw,4 ,10 ); +GEN_VXFORM (vmulhud,4 ,11 );GEN_VXFORM_DUAL (vmuleuw,PPC_ALTIVEC ,PPC_NONE , vmulhuw,PPC_NONE ,PPC2_ISA310 );GEN_VXFORM (vmulesb,4 ,12 );
@@ -820,6 +821,7 @@ GEN_VXFORM(vmulesw, 4, 14);GEN_VXFORM (vmulhsw,4 ,14 );GEN_VXFORM_DUAL (vmulesw,PPC_ALTIVEC ,PPC_NONE , vmulhsw,PPC_NONE ,PPC2_ISA310 ); +GEN_VXFORM (vmulhsd,4 ,15 );GEN_VXFORM_V (vslb,MO_8 , tcg_gen_gvec_shlv,2 ,4 );GEN_VXFORM_V (vslh,MO_16 , tcg_gen_gvec_shlv,2 ,5 );GEN_VXFORM_V (vslw,MO_32 , tcg_gen_gvec_shlv,2 ,6 );
target/ppc/translate/vmx-ops.inc.c +2 -0
@@ -111,9 +111,11 @@ GEN_VXFORM_310(vmulld, 4, 7),GEN_VXFORM (vmuleub,4 ,8 ),GEN_VXFORM (vmuleuh,4 ,9 ),GEN_VXFORM_DUAL (vmuleuw, vmulhuw,4 ,10 ,PPC_ALTIVEC ,PPC_NONE ), +GEN_VXFORM_310 (vmulhud,4 ,11 ),GEN_VXFORM (vmulesb,4 ,12 ),GEN_VXFORM (vmulesh,4 ,13 ),GEN_VXFORM_DUAL (vmulesw, vmulhsw,4 ,14 ,PPC_ALTIVEC ,PPC_NONE ), +GEN_VXFORM_310 (vmulhsd,4 ,15 ),GEN_VXFORM (vslb,2 ,4 ),GEN_VXFORM (vslh,2 ,5 ), GEN_VXFORM_DUAL(vslw, vrlwnm, 2, 6, PPC_ALTIVEC, PPC_NONE),
Signature · 1 line
2.23.0
PATCH v2 7/7 target/ppc: add vdiv{su}{wd} vmod{su}{wd} instructions
In reply to Lijun Panvdivsw: Vector Divide Signed Word
vdivuw: Vector Divide Unsigned Word
vdivsd: Vector Divide Signed Doubleword
vdivud: Vector Divide Unsigned Doubleword
vmodsw: Vector Modulo Signed Word
vmoduw: Vector Modulo Unsigned Word
vmodsd: Vector Modulo Signed Doubleword
vmodud: Vector Modulo Unsigned Doubleword
---
v2: fix coding style
use Power ISA 3.1 flag
target/ppc/helper.h | 8 ++++++++ target/ppc/int_helper.c | 19 +++++++++++++++++++ target/ppc/translate.c | 3 +++ target/ppc/translate/vmx-impl.inc.c | 15 +++++++++++++++ target/ppc/translate/vmx-ops.inc.c | 17 +++++++++++++++-- 5 files changed, 60 insertions(+), 2 deletions(-)
target/ppc/helper.h +8 -0
@@ -190,6 +190,14 @@ DEF_HELPER_3(vmulhsw, void, avr, avr, avr) DEF_HELPER_3(vmulhuw, void, avr, avr, avr) DEF_HELPER_3(vmulhsd, void, avr, avr, avr) DEF_HELPER_3(vmulhud, void, avr, avr, avr) +DEF_HELPER_3(vdivsw, void, avr, avr, avr) +DEF_HELPER_3(vdivuw, void, avr, avr, avr) +DEF_HELPER_3(vdivsd, void, avr, avr, avr) +DEF_HELPER_3(vdivud, void, avr, avr, avr) +DEF_HELPER_3(vmodsw, void, avr, avr, avr) +DEF_HELPER_3(vmoduw, void, avr, avr, avr) +DEF_HELPER_3(vmodsd, void, avr, avr, avr) +DEF_HELPER_3(vmodud, void, avr, avr, avr) DEF_HELPER_3(vslo, void, avr, avr, avr) DEF_HELPER_3(vsro, void, avr, avr, avr)DEF_HELPER_3 (vsrv, void, avr, avr, avr)
target/ppc/int_helper.c +19 -0
@@ -575,6 +575,25 @@ VARITH_DO(mulld, *, s64)#undef VARITH_DO#undef VARITH +#define VDIV_MOD_DO (name, op, element) \ + void helper_v##name(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) \ + { \ + int i; \ + \ + for (i = 0; i < ARRAY_SIZE(r->element); i++) { \ + r->element[i] = a->element[i] op b->element[i]; \ + } \ + } +VDIV_MOD_DO(divsw, /, s32) +VDIV_MOD_DO(divuw, /, u32) +VDIV_MOD_DO(divsd, /, s64) +VDIV_MOD_DO(divud, /, u64) +VDIV_MOD_DO(modsw, %, s32) +VDIV_MOD_DO(moduw, %, u32) +VDIV_MOD_DO(modsd, %, s64) +VDIV_MOD_DO(modud, %, u64) +#undef VDIV_MOD_DO +#define VARITHFP (suffix, func) \ void helper_v##suffix(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, \ ppc_avr_t *b) \
target/ppc/translate.c +3 -0
@@ -388,6 +388,9 @@ GEN_OPCODE3(name, opc1, opc2, opc3, opc4, inval, type, type2)#define GEN_HANDLER2_E_2 (name, onam, opc1, opc2, opc3, opc4, inval, typ, typ2) \ GEN_OPCODE4(name, onam, opc1, opc2, opc3, opc4, inval, typ, typ2) +#define GEN_HANDLER_BOTH (name, opc1, opc2, opc3, inval0, inval1, type0, type1) \ +GEN_OPCODE_DUAL(name, opc1, opc2, opc3, inval0, inval1, type0, type1) + typedef struct opcode_t { unsigned char opc1, opc2, opc3, opc4; #if HOST_LONG_BITS == 64 /* Explicitly align to 64 bits */
target/ppc/translate/vmx-impl.inc.c +15 -0
@@ -798,6 +798,9 @@ static void trans_vclzd(DisasContext *ctx)tcg_temp_free_i64 (avr); } +static void gen_vexptefp (DisasContext *ctx); +static void gen_vlogefp (DisasContext *ctx); +GEN_VXFORM (vmuloub,4 ,0 );GEN_VXFORM (vmulouh,4 ,1 );GEN_VXFORM (vmulouw,4 ,2 );
@@ -822,6 +825,18 @@ GEN_VXFORM(vmulhsw, 4, 14);GEN_VXFORM_DUAL (vmulesw,PPC_ALTIVEC ,PPC_NONE , vmulhsw,PPC_NONE ,PPC2_ISA310 );GEN_VXFORM (vmulhsd,4 ,15 ); +GEN_VXFORM (vdivuw,5 ,2 ); +GEN_VXFORM (vdivud,5 ,3 ); +GEN_VXFORM (vdivsw,5 ,6 ); +GEN_VXFORM_DUAL_EXT (vexptefp,PPC_ALTIVEC ,PPC_NONE ,0x001f0000 , + vdivsw,PPC_NONE ,PPC2_ISA310 ,0x00000000 ); +GEN_VXFORM (vdivsd,5 ,7 ); +GEN_VXFORM_DUAL_EXT (vlogefp,PPC_ALTIVEC ,PPC_NONE ,0x001f0000 , + vdivsd,PPC_NONE ,PPC2_ISA310 ,0x00000000 ); +GEN_VXFORM (vmoduw,5 ,26 ); +GEN_VXFORM (vmodud,5 ,27 ); +GEN_VXFORM (vmodsw,5 ,30 ); +GEN_VXFORM (vmodsd,5 ,31 );GEN_VXFORM_V (vslb,MO_8 , tcg_gen_gvec_shlv,2 ,4 );GEN_VXFORM_V (vslh,MO_16 , tcg_gen_gvec_shlv,2 ,5 );GEN_VXFORM_V (vslw,MO_32 , tcg_gen_gvec_shlv,2 ,6 );
target/ppc/translate/vmx-ops.inc.c +15 -2
@@ -54,6 +54,11 @@ GEN_HANDLER_E(name, 0x04, opc2, opc3, 0x00000000, PPC_NONE, PPC2_ISA310)#define GEN_VXFORM_DUAL (name0, name1, opc2, opc3, type0, type1) \ GEN_HANDLER_E(name0##_##name1, 0x4, opc2, opc3, 0x00000000, type0, type1) +#define GEN_VXFORM_DUAL_BOTH (name0, name1, opc2, opc3, inval0, \ + inval1, type0, type1) \ +GEN_HANDLER_BOTH(name0##_##name1, 0x4, opc2, opc3, inval0, \ + inval1, type0, type1) +#define GEN_VXRFORM_DUAL (name0, name1, opc2, opc3, tp0, tp1) \ GEN_HANDLER_E(name0##_##name1, 0x4, opc2, opc3, 0x00000000, tp0, tp1), \ GEN_HANDLER_E(name0##_##name1, 0x4, opc2, (opc3 | 0x10), 0x00000000, tp0, tp1),
@@ -116,6 +121,16 @@ GEN_VXFORM(vmulesb, 4, 12),GEN_VXFORM (vmulesh,4 ,13 ),GEN_VXFORM_DUAL (vmulesw, vmulhsw,4 ,14 ,PPC_ALTIVEC ,PPC_NONE ),GEN_VXFORM_310 (vmulhsd,4 ,15 ), +GEN_VXFORM_310 (vdivuw,5 ,2 ), +GEN_VXFORM_310 (vdivud,5 ,3 ), +GEN_VXFORM_DUAL_BOTH (vexptefp, vdivsw,5 ,6 ,0x001f0000 ,0x00000000 , +PPC_ALTIVEC ,PPC2_ISA310 ), +GEN_VXFORM_DUAL_BOTH (vlogefp, vdivsd,5 ,7 ,0x001f0000 ,0x00000000 , +PPC_ALTIVEC ,PPC2_ISA310 ), +GEN_VXFORM_310 (vmoduw,5 ,26 ), +GEN_VXFORM_310 (vmodud,5 ,27 ), +GEN_VXFORM_310 (vmodsw,5 ,30 ), +GEN_VXFORM_310 (vmodsd,5 ,31 ),GEN_VXFORM (vslb,2 ,4 ),GEN_VXFORM (vslh,2 ,5 ), GEN_VXFORM_DUAL(vslw, vrlwnm, 2, 6, PPC_ALTIVEC, PPC_NONE),
@@ -259,8 +274,6 @@ GEN_VXFORM_NOA(vupkhpx, 7, 13),GEN_VXFORM_NOA (vupklpx,7 ,15 ),GEN_VXFORM_NOA (vrefp,5 ,4 ),GEN_VXFORM_NOA (vrsqrtefp,5 ,5 ), -GEN_VXFORM_NOA (vexptefp,5 ,6 ), -GEN_VXFORM_NOA (vlogefp,5 ,7 ),GEN_VXFORM_NOA (vrfim,5 ,11 ),GEN_VXFORM_NOA (vrfin,5 ,8 ), GEN_VXFORM_NOA(vrfip, 5, 10),
Signature · 1 line
2.23.0
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series failed the asan build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
=== TEST SCRIPT BEGIN ===
#!/bin/bash
export ARCH=x86_64
make docker-image-fedora V=1 NETWORK=1
time make docker-test-debug@fedora TARGET_LIST=x86_64-softmmu J=14 NETWORK=1 === TEST SCRIPT END ===
GEN docs/interop/qemu-qmp-ref.html GEN docs/interop/qemu-qmp-ref.txt GEN docs/interop/qemu-qmp-ref.7 /usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o) CC qga/guest-agent-command-state.o CC qga/commands.o CC qga/main.o --- GEN docs/interop/qemu-ga-ref.html GEN docs/interop/qemu-ga-ref.txt GEN docs/interop/qemu-ga-ref.7 /usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o) AS pc-bios/optionrom/linuxboot.o CC pc-bios/optionrom/linuxboot_dma.o AS pc-bios/optionrom/multiboot.o --- BUILD pc-bios/optionrom/linuxboot.img BUILD pc-bios/optionrom/kvmvapic.raw BUILD pc-bios/optionrom/multiboot.raw /usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o) BUILD pc-bios/optionrom/linuxboot.raw BUILD pc-bios/optionrom/linuxboot_dma.img SIGN pc-bios/optionrom/kvmvapic.bin --- LINK ivshmem-client SIGN pc-bios/optionrom/linuxboot_dma.bin LINK ivshmem-server /usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o) BUILD pc-bios/optionrom/pvh.img BUILD pc-bios/optionrom/pvh.raw SIGN pc-bios/optionrom/pvh.bin LINK qemu-nbd
/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)
LINK qemu-storage-daemon/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)
LINK qemu-img/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)
LINK qemu-io/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)
LINK qemu-edid
LINK fsdev/virtfs-proxy-helper/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o) /usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)
LINK scsi/qemu-pr-helper/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o) /usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)
LINK qemu-bridge-helper
LINK virtiofsd/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)
LINK vhost-user-input/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)
LINK qemu-ga/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o) /usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)
GEN x86_64-softmmu/hmp-commands.h
GEN x86_64-softmmu/hmp-commands-info.h
GEN x86_64-softmmu/config-target.h
---
CC x86_64-softmmu/hw/display/virtio-gpu-3d.o
CC x86_64-softmmu/hw/display/vhost-user-gpu.o
CC x86_64-softmmu/hw/display/virtio-gpu-pci.o
/tmp/qemu-test/src/fpu/softfloat.c:3365:13: error: bitwise negation of a boolean expression; did you mean logical negation? [-Werror,-Wbool-operation]
absZ &= ~ ( ( ( roundBits ^ 0x40 ) == 0 ) & roundNearestEven );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!
/tmp/qemu-test/src/fpu/softfloat.c:3423:18: error: bitwise negation of a boolean expression; did you mean logical negation? [-Werror,-Wbool-operation]
absZ0 &= ~ ( ( (uint64_t) ( absZ1<<1 ) == 0 ) & roundNearestEven );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!
/tmp/qemu-test/src/fpu/softfloat.c:3483:18: error: bitwise negation of a boolean expression; did you mean logical negation? [-Werror,-Wbool-operation]
absZ0 &= ~(((uint64_t)(absZ1<<1) == 0) & roundNearestEven);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!
/tmp/qemu-test/src/fpu/softfloat.c:3606:13: error: bitwise negation of a boolean expression; did you mean logical negation? [-Werror,-Wbool-operation]
zSig &= ~ ( ( ( roundBits ^ 0x40 ) == 0 ) & roundNearestEven );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!
/tmp/qemu-test/src/fpu/softfloat.c:3760:13: error: bitwise negation of a boolean expression; did you mean logical negation? [-Werror,-Wbool-operation]
zSig &= ~ ( ( ( roundBits ^ 0x200 ) == 0 ) & roundNearestEven );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!
/tmp/qemu-test/src/fpu/softfloat.c:3987:21: error: bitwise negation of a boolean expression; did you mean logical negation? [-Werror,-Wbool-operation]
~ ( ( (uint64_t) ( zSig1<<1 ) == 0 ) & roundNearestEven );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!
/tmp/qemu-test/src/fpu/softfloat.c:4003:22: error: bitwise negation of a boolean expression; did you mean logical negation? [-Werror,-Wbool-operation]
zSig0 &= ~ ( ( (uint64_t) ( zSig1<<1 ) == 0 ) & roundNearestEven );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!
/tmp/qemu-test/src/fpu/softfloat.c:4273:18: error: bitwise negation of a boolean expression; did you mean logical negation? [-Werror,-Wbool-operation]
zSig1 &= ~ ( ( zSig2 + zSig2 == 0 ) & roundNearestEven );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!8 errors generated.
make[1]: *** [/tmp/qemu-test/src/rules.mak:69: fpu/softfloat.o] Error 1
make[1]: *** Waiting for unfinished jobs..../tmp/qemu-test/src/migration/ram.c:919:45: error: implicit conversion from 'unsigned long' to 'double' changes value from 18446744073709551615 to 18446744073709551616 [-Werror,-Wimplicit-int-float-conversion]
xbzrle_counters.encoding_rate = UINT64_MAX;
~ ^~~~~~~~~~/usr/include/stdint.h:130:23: note: expanded from macro 'UINT64_MAX'
---
18446744073709551615UL
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [/tmp/qemu-test/src/rules.mak:69: migration/ram.o] Error 1
make: *** [Makefile:527: x86_64-softmmu/all] Error 2 Traceback (most recent call last):
File "./tests/docker/docker.py", line 669, in <module>
sys.exit(main())
---
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', '-n', 'docker', 'run', '--label', 'com.qemu.instance.uuid=a8eb838f72414145ad19ca7b26a17318', '-u', '1003', '--security-opt', 'seccomp=unconfined', '--rm', '-e', 'TARGET_LIST=x86_64-softmmu', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=14', '-e', 'DEBUG=', '-e', 'SHOW_ENV=', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew2/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-51ztubho/src/docker-src.2020-06-17-20.37.27.9815:/var/tmp/qemu:z,ro', 'qemu:fedora', '/var/tmp/qemu/run', 'test-debug']' returned non-zero exit status 2. filter=--filter=label=com.qemu.instance.uuid=a8eb838f72414145ad19ca7b26a17318
make[1]: *** [docker-run] Error 1
make[1]: Leaving directory `/var/tmp/patchew-tester-tmp-51ztubho/src'
make: *** [docker-run-test-debug@fedora] Error 2
real 4m49.119s
user 0m8.537s
The full log is available at
http://patchew.org/logs/[email protected]/testing.asan/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]
Quoted 14 lines · On Jun 17, 2020, at 7:42 PM, [email protected] wrote:
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series failed the asan build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
Quoted 6 lines
=== TEST SCRIPT BEGIN ===
#!/bin/bash
export ARCH=x86_64
make docker-image-fedora V=1 NETWORK=1
time make docker-test-debug@fedora TARGET_LIST=x86_64-softmmu J=14 NETWORK=1 === TEST SCRIPT END ===
It look like the errors generated below are not directly related to the code changes I made. Does anyone know why it still reports errors?
Thanks,
Lijun
Quoted 127 lines
GEN docs/interop/qemu-qmp-ref.html GEN docs/interop/qemu-qmp-ref.txt GEN docs/interop/qemu-qmp-ref.7 /usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o) CC qga/guest-agent-command-state.o CC qga/commands.o CC qga/main.o --- GEN docs/interop/qemu-ga-ref.html GEN docs/interop/qemu-ga-ref.txt GEN docs/interop/qemu-ga-ref.7 /usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o) AS pc-bios/optionrom/linuxboot.o CC pc-bios/optionrom/linuxboot_dma.o AS pc-bios/optionrom/multiboot.o --- BUILD pc-bios/optionrom/linuxboot.img BUILD pc-bios/optionrom/kvmvapic.raw BUILD pc-bios/optionrom/multiboot.raw /usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o) BUILD pc-bios/optionrom/linuxboot.raw BUILD pc-bios/optionrom/linuxboot_dma.img SIGN pc-bios/optionrom/kvmvapic.bin --- LINK ivshmem-client SIGN pc-bios/optionrom/linuxboot_dma.bin LINK ivshmem-server /usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o) BUILD pc-bios/optionrom/pvh.img BUILD pc-bios/optionrom/pvh.raw SIGN pc-bios/optionrom/pvh.bin LINK qemu-nbd
/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)
LINK qemu-storage-daemon/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)
LINK qemu-img/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)
LINK qemu-io/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)
LINK qemu-edid
LINK fsdev/virtfs-proxy-helper/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)
LINK scsi/qemu-pr-helper/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)
LINK qemu-bridge-helper
LINK virtiofsd/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)
LINK vhost-user-input/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)
LINK qemu-ga/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)/usr/bin/ld: /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)GEN x86_64-softmmu/hmp-commands.h GEN x86_64-softmmu/hmp-commands-info.h GEN x86_64-softmmu/config-target.h --- CC x86_64-softmmu/hw/display/virtio-gpu-3d.o CC x86_64-softmmu/hw/display/vhost-user-gpu.o CC x86_64-softmmu/hw/display/virtio-gpu-pci.o /tmp/qemu-test/src/fpu/softfloat.c:3365:13: error: bitwise negation of a boolean expression; did you mean logical negation? [-Werror,-Wbool-operation] absZ &= ~ ( ( ( roundBits ^ 0x40 ) == 0 ) & roundNearestEven ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! /tmp/qemu-test/src/fpu/softfloat.c:3423:18: error: bitwise negation of a boolean expression; did you mean logical negation? [-Werror,-Wbool-operation] absZ0 &= ~ ( ( (uint64_t) ( absZ1<<1 ) == 0 ) & roundNearestEven ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! /tmp/qemu-test/src/fpu/softfloat.c:3483:18: error: bitwise negation of a boolean expression; did you mean logical negation? [-Werror,-Wbool-operation] absZ0 &= ~(((uint64_t)(absZ1<<1) == 0) & roundNearestEven); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! /tmp/qemu-test/src/fpu/softfloat.c:3606:13: error: bitwise negation of a boolean expression; did you mean logical negation? [-Werror,-Wbool-operation] zSig &= ~ ( ( ( roundBits ^ 0x40 ) == 0 ) & roundNearestEven ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! /tmp/qemu-test/src/fpu/softfloat.c:3760:13: error: bitwise negation of a boolean expression; did you mean logical negation? [-Werror,-Wbool-operation] zSig &= ~ ( ( ( roundBits ^ 0x200 ) == 0 ) & roundNearestEven ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! /tmp/qemu-test/src/fpu/softfloat.c:3987:21: error: bitwise negation of a boolean expression; did you mean logical negation? [-Werror,-Wbool-operation] ~ ( ( (uint64_t) ( zSig1<<1 ) == 0 ) & roundNearestEven ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! /tmp/qemu-test/src/fpu/softfloat.c:4003:22: error: bitwise negation of a boolean expression; did you mean logical negation? [-Werror,-Wbool-operation] zSig0 &= ~ ( ( (uint64_t) ( zSig1<<1 ) == 0 ) & roundNearestEven ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! /tmp/qemu-test/src/fpu/softfloat.c:4273:18: error: bitwise negation of a boolean expression; did you mean logical negation? [-Werror,-Wbool-operation] zSig1 &= ~ ( ( zSig2 + zSig2 == 0 ) & roundNearestEven ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !8 errors generated.
make[1]: *** [/tmp/qemu-test/src/rules.mak:69:fpu/softfloat.o] Error 1
make[1]: *** Waiting for unfinished jobs..../tmp/qemu-test/src/migration/ram.c:919:45: error: implicit conversion from 'unsigned long' to 'double' changes value from 18446744073709551615 to 18446744073709551616 [-Werror,-Wimplicit-int-float-conversion]xbzrle_counters.encoding_rate = UINT64_MAX; ~ ^~~~~~~~~~
/usr/include/stdint.h:130:23: note: expanded from macro 'UINT64_MAX'
---
18446744073709551615UL
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [/tmp/qemu-test/src/rules.mak:69:migration/ram.o] Error 1
make: *** [Makefile:527: x86_64-softmmu/all] Error 2
Traceback (most recent call last):
File "./tests/docker/docker.py", line 669, in <module>
sys.exit(main())
---
raiseCalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', '-n', 'docker', 'run', '--label', 'com.qemu.instance.uuid=a8eb838f72414145ad19ca7b26a17318', '-u', '1003', '--security-opt', 'seccomp=unconfined', '--rm', '-e', 'TARGET_LIST=x86_64-softmmu', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=14', '-e', 'DEBUG=', '-e', 'SHOW_ENV=', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew2/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-51ztubho/src/docker-src.2020-06-17-20.37.27.9815:/var/tmp/qemu:z,ro', 'qemu:fedora', '/var/tmp/qemu/run', 'test-debug']' returned non-zero exit status 2. filter=--filter=label=com.qemu.instance.uuid=a8eb838f72414145ad19ca7b26a17318
make[1]: *** [docker-run] Error 1
make[1]: Leaving directory `/var/tmp/patchew-tester-tmp-51ztubho/src'
make: *** [docker-run-test-debug@fedora] Error 2real 4m49.119s
user 0m8.537sThe full log is available at
http://patchew.org/logs/[email protected]/testing.asan/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]