This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Update NEON testcase with missing target string in
ClosedPublic

Authored by rs on Sep 30 2020, 2:45 AM.

Details

Summary

This is a follow-up from https://reviews.llvm.org/D61717. Where Richard described the issue with compiling arm_neon.h under -flax-vector-conversions=none. It looks like the example reproducer does actually work:

echo '#include <arm_neon.h>' | clang -target arm64-linux-gnu -arch +neon -fsyntax-only -x c - -fno-lax-vector-conversions

but was missing the -ffreestanding compiler option otherwise the compiler would select the system headers from /usr. However, arm-neon-header.c test was missing this target triple 'arm64-linux-gnu' so I've added it here.

Diff Detail

Event Timeline

rs created this revision.Sep 30 2020, 2:45 AM
rs requested review of this revision.Sep 30 2020, 2:45 AM
This revision is now accepted and ready to land.Sep 30 2020, 8:12 AM
This revision was automatically updated to reflect the committed changes.