diff options
author | Eli Friedman <efriedma@codeaurora.org> | 2018-04-25 19:14:05 +0000 |
---|---|---|
committer | Eli Friedman <efriedma@codeaurora.org> | 2018-04-25 19:14:05 +0000 |
commit | e54d0ff400c9c6848a1d6f0a16c42eb2670d69c7 (patch) | |
tree | f213b1f62540de1ffb4f8446c6fd6ac8d064b1a5 /clang/test/CodeGen/arm-build-attributes.c | |
parent | cb8ca5f37c29bef9b5b1f119d7ab10ae288956c9 (diff) | |
download | bcm5719-llvm-e54d0ff400c9c6848a1d6f0a16c42eb2670d69c7.tar.gz bcm5719-llvm-e54d0ff400c9c6848a1d6f0a16c42eb2670d69c7.zip |
[TargetInfo] Sort target features before passing them to the backend
Passing the features in random order will lead to unpredictable results
when some of the features are related (like the architecture-version
features on ARM).
It might be possible to fix this particular case in the ARM target code,
to avoid adding overlapping target features. But we should probably be
sorting in any case: the behavior shouldn't depend on StringMap's
hashing algorithm.
Differential Revision: https://reviews.llvm.org/D46030
llvm-svn: 330861
Diffstat (limited to 'clang/test/CodeGen/arm-build-attributes.c')
-rw-r--r-- | clang/test/CodeGen/arm-build-attributes.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGen/arm-build-attributes.c b/clang/test/CodeGen/arm-build-attributes.c new file mode 100644 index 00000000000..ceb97d153f8 --- /dev/null +++ b/clang/test/CodeGen/arm-build-attributes.c @@ -0,0 +1,4 @@ +// RUN: %clang --target=arm-none-eabi -x c - -o - -S < %s -mcpu=cortex-a5 -mfpu=vfpv4-d16 | FileCheck %s +// REQUIRES: arm-registered-target +// CHECK: .fpu vfpv4-d16 +void foo() {} |