mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 20:33:54 -06:00

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>
12 lines
287 B
C
12 lines
287 B
C
/* 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;
|
|
}
|