tests/tcg/i386: initialize more registers in test-avx
Some instructions use YMM0 implicitly, or use YMM9 as a read-modify-write register destination. Initialize those registers as well. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
e582b629f0
commit
05a0a100a5
@ -319,6 +319,8 @@ int main(int argc, char *argv[])
|
||||
int i;
|
||||
|
||||
init_all(&initI);
|
||||
init_intreg(&initI.ymm[0]);
|
||||
init_intreg(&initI.ymm[9]);
|
||||
init_intreg(&initI.ymm[10]);
|
||||
init_intreg(&initI.ymm[11]);
|
||||
init_intreg(&initI.ymm[12]);
|
||||
@ -327,6 +329,8 @@ int main(int argc, char *argv[])
|
||||
dump_regs(&initI);
|
||||
|
||||
init_all(&initF16);
|
||||
init_f16reg(&initF16.ymm[0]);
|
||||
init_f16reg(&initF16.ymm[9]);
|
||||
init_f16reg(&initF16.ymm[10]);
|
||||
init_f16reg(&initF16.ymm[11]);
|
||||
init_f16reg(&initF16.ymm[12]);
|
||||
@ -336,6 +340,8 @@ int main(int argc, char *argv[])
|
||||
dump_regs(&initF16);
|
||||
|
||||
init_all(&initF32);
|
||||
init_f32reg(&initF32.ymm[0]);
|
||||
init_f32reg(&initF32.ymm[9]);
|
||||
init_f32reg(&initF32.ymm[10]);
|
||||
init_f32reg(&initF32.ymm[11]);
|
||||
init_f32reg(&initF32.ymm[12]);
|
||||
@ -345,6 +351,8 @@ int main(int argc, char *argv[])
|
||||
dump_regs(&initF32);
|
||||
|
||||
init_all(&initF64);
|
||||
init_f64reg(&initF64.ymm[0]);
|
||||
init_f64reg(&initF64.ymm[9]);
|
||||
init_f64reg(&initF64.ymm[10]);
|
||||
init_f64reg(&initF64.ymm[11]);
|
||||
init_f64reg(&initF64.ymm[12]);
|
||||
|
Loading…
Reference in New Issue
Block a user