Disable auto-vectorization.

Until https://gitlab.com/qemu-project/qemu/-/issues/1976 is fixed, this
is just causing too much confusion and wasted time.

Removing V from the architecture string has the same effect, but
requires some code changes (to be able to compile code that's
_explicitly_ using V), and makes it less obvious that this is just a
temporary workaround for a qemu bug.

Bug: http://b/320416684
Test: objdump
Change-Id: Iec7d63ab227b31f82f530dabbdc4f3aa54277f04
This commit is contained in:
Elliott Hughes 2024-01-17 14:24:53 -08:00
parent 6794cc20c5
commit c0ea850bfb

View file

@ -29,6 +29,8 @@ var (
// Equivalent to "-munaligned-access", but our clang doesn't have that yet. // Equivalent to "-munaligned-access", but our clang doesn't have that yet.
"-Xclang -target-feature -Xclang +unaligned-scalar-mem", "-Xclang -target-feature -Xclang +unaligned-scalar-mem",
"-Xclang -target-feature -Xclang +unaligned-vector-mem", "-Xclang -target-feature -Xclang +unaligned-vector-mem",
// Until https://gitlab.com/qemu-project/qemu/-/issues/1976 is fixed...
"-fno-vectorize",
} }
riscv64ArchVariantCflags = map[string][]string{} riscv64ArchVariantCflags = map[string][]string{}