aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorShivaprasad G Bhat <sbhat@linux.ibm.com>2023-05-04 05:35:39 -0400
committerDaniel Henrique Barboza <danielhb413@gmail.com>2023-05-05 12:34:22 -0300
commit6a5d81b17201ab8a95539bad94c8a6c08a42e076 (patch)
treeb917b3a91f7d71a512d683be223cc721b543f004 /tests
parentfcdae0122de602e95f198731b834b7067ad05e1f (diff)
downloadqemu-6a5d81b17201ab8a95539bad94c8a6c08a42e076.zip
qemu-6a5d81b17201ab8a95539bad94c8a6c08a42e076.tar.gz
qemu-6a5d81b17201ab8a95539bad94c8a6c08a42e076.tar.bz2
tcg: ppc64: Fix mask generation for vextractdm
In function do_extractm() the mask is calculated as dup_const(1 << (element_width - 1)). '1' being signed int works fine for MO_8,16,32. For MO_64, on PPC64 host this ends up becoming 0 on compilation. The vextractdm uses MO_64, and it ends up having mask as 0. Explicitly use 1ULL instead of signed int 1 like its used everywhere else. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1536 Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Lucas Mateus Castro <lucas.araujo@eldorado.org.br> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Cédric Le Goater <clg@redhat.com> Message-Id: <168319292809.1159309.5817546227121323288.stgit@ltc-boston1.aus.stglabs.ibm.com> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions