mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
tcg/optimize: Do not attempt to constant fold neg_vec
Split out the tail of fold_neg to fold_neg_no_const so that we can avoid attempting to constant fold vector negate. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2150 Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
bc0cd4ae88
commit
e25fe886b8
3 changed files with 21 additions and 10 deletions
|
@ -10,7 +10,7 @@ VPATH += $(AARCH64_SRC)
|
|||
|
||||
# Base architecture tests
|
||||
AARCH64_TESTS=fcvt pcalign-a64 lse2-fault
|
||||
AARCH64_TESTS += test-2248
|
||||
AARCH64_TESTS += test-2248 test-2150
|
||||
|
||||
fcvt: LDFLAGS+=-lm
|
||||
|
||||
|
|
12
tests/tcg/aarch64/test-2150.c
Normal file
12
tests/tcg/aarch64/test-2150.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
/* See https://gitlab.com/qemu-project/qemu/-/issues/2150 */
|
||||
|
||||
int main()
|
||||
{
|
||||
asm volatile(
|
||||
"movi v6.4s, #1\n"
|
||||
"movi v7.4s, #0\n"
|
||||
"sub v6.2d, v7.2d, v6.2d\n"
|
||||
: : : "v6", "v7");
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue