[flang-commits] [flang] [flang][test] Run Driver/fveclib-codegen.f90 for x86_64 (PR #103730)
Rainer Orth via flang-commits
flang-commits at lists.llvm.org
Wed Aug 14 06:08:32 PDT 2024
================
@@ -1,7 +1,8 @@
! test that -fveclib= is passed to the backend
! -target aarch64 so that ArmPL is available
-! RUN: %flang -S -Ofast -fveclib=LIBMVEC -o - %s | FileCheck %s
-! RUN: %flang -S -Ofast -fveclib=NoLibrary -o - %s | FileCheck %s --check-prefix=NOLIB
+! REQUIRES: x86-registered-target
----------------
rorth wrote:
Wouldn't this become a bit involved? One would have to require either `x86-registered-target` and run the tests with `-target x86_64-unknown-linux-gnu ` or (alternatively or both) require `aarch64-registered-target` and run them for `-target aarch64-unknown-linux-gnu`. I thought the test was supposed to test that `libmvec` functions are used if `libmvec` is available? Otherwise whenever `libmvec` is ported to a new target, the test would need to test that, too.
https://github.com/llvm/llvm-project/pull/103730
More information about the flang-commits
mailing list