blob: d443616180c36a9b0a816383bb87f1559632262c [file] [log] [blame]
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
source_set("fpu") {
testonly = true
sources = [ "fpu_basic.cc" ]
deps = [
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/zx",
"//zircon/system/ulib/zxtest",
]
# Disable auto-vectorization in the case of RISC-V to ensure that FPU
# instructions are emitted and that we are indeed indirectly testing the
# context switching of FPU state. For other architectures, FPU and vector
# state coincide, so auto-vectorization is okay and still results in the
# intended logic being exercised.
if (current_cpu == "riscv64") {
cflags = [ "-fno-vectorize" ]
}
}