[llvm-dev] [FPEnv] Making an llc test multiplatform?

Kaylor, Andrew via llvm-dev llvm-dev at lists.llvm.org
Thu May 16 18:19:27 PDT 2019


I think it does make sense to have a version of this test in the Generic directory, but we will still need target-specific versions of the test. In the generic directory, we can only verify that we are able to test that the IR can successfully get through CodeGen. We need target-specific versions of the tests to make sure that the correct instructions are being generated.

-Andy

From: Kevin Neal <Kevin.Neal at sas.com>
Sent: Thursday, May 16, 2019 11:02 AM
To: LLVM Developers Mailing List <llvm-dev at lists.llvm.org>
Cc: Kaylor, Andrew <andrew.kaylor at intel.com>
Subject: [FPEnv] Making an llc test multiplatform?

I'm working on test/CodeGen/X86/vector-constrained-fp-intrinsics.fp and testing it on other hosts.

We have an intern who found that this x86_64 llc test works fine[*] on powerpc64le but fails in a couple of ways on every other host he's tried it. It's a basic test of the constrained FP work, so it makes sense to me that we would be trying it on several hosts. Yet right now it lives in the X86 directory.

Would it make sense to move this test to a directory common to other architectures? Like the test/CodeGen/Generic directory perhaps?



[*] footnote: We haven't checked the generated instructions to verify they are correct. But at least we get complete assembler source as output.
--
Kevin P. Neal
SAS/C and SAS/C++ Compiler
Host Research and Development
SAS Institute, Inc.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190517/010820ee/attachment.html>


More information about the llvm-dev mailing list