qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Bug 1906536] [NEW] Unable to set SVE VL to 1024 bits or above since 7b6a2198
@ 2020-12-02 16:00 Alex Coplan
  2020-12-02 17:05 ` [Bug 1906536] " Philippe Mathieu-Daudé
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Alex Coplan @ 2020-12-02 16:00 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

Prior to 7b6a2198e71794c851f39ac7a92d39692c786820, the QEMU option sve-
max-vq could be used to set the vector length of the implementation.
This is useful (among other reasons) for testing software compiled with
a fixed SVE vector length. Since this commit, the vector length is
capped at 512 bits.

To reproduce the issue:

$ cat rdvl.s
.global _start
_start:
  rdvl x0, #1
  asr x0, x0, #4
  mov x8, #93 // exit
  svc #0
$ aarch64-linux-gnu-as -march=armv8.2-a+sve rdvl.s -o rdvl.o
$ aarch64-linux-gnu-ld rdvl.o
$ for vl in 1 2 4 8 16; do ../build-qemu/aarch64-linux-user/qemu-aarch64 -cpu max,sve-max-vq=$vl a.out; echo $?; done
1
2
4
4
4

For a QEMU built prior to the above revision, we get the output:
1
2
4
8
16

as expected. It seems that either the old behavior should be restored,
or there should be an option to force a higher vector length?

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1906536

Title:
  Unable to set SVE VL to 1024 bits or above since 7b6a2198

Status in QEMU:
  New

Bug description:
  Prior to 7b6a2198e71794c851f39ac7a92d39692c786820, the QEMU option
  sve-max-vq could be used to set the vector length of the
  implementation. This is useful (among other reasons) for testing
  software compiled with a fixed SVE vector length. Since this commit,
  the vector length is capped at 512 bits.

  To reproduce the issue:

  $ cat rdvl.s
  .global _start
  _start:
    rdvl x0, #1
    asr x0, x0, #4
    mov x8, #93 // exit
    svc #0
  $ aarch64-linux-gnu-as -march=armv8.2-a+sve rdvl.s -o rdvl.o
  $ aarch64-linux-gnu-ld rdvl.o
  $ for vl in 1 2 4 8 16; do ../build-qemu/aarch64-linux-user/qemu-aarch64 -cpu max,sve-max-vq=$vl a.out; echo $?; done
  1
  2
  4
  4
  4

  For a QEMU built prior to the above revision, we get the output:
  1
  2
  4
  8
  16

  as expected. It seems that either the old behavior should be restored,
  or there should be an option to force a higher vector length?

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1906536/+subscriptions


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-07-14 14:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-02 16:00 [Bug 1906536] [NEW] Unable to set SVE VL to 1024 bits or above since 7b6a2198 Alex Coplan
2020-12-02 17:05 ` [Bug 1906536] " Philippe Mathieu-Daudé
2020-12-02 17:33 ` Peter Maydell
2020-12-02 17:34 ` Alex Coplan
2020-12-02 17:36 ` Peter Maydell
2020-12-03 10:50 ` Alex Bennée
2020-12-03 11:22 ` Peter Maydell
2021-05-10  4:47 ` Thomas Huth
2021-07-10  4:17 ` Launchpad Bug Tracker
2021-07-14 13:45 ` Peter Maydell
2021-07-14 14:28 ` Thomas Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).