r348142 - [AArch64] Add command-line option for SSBS
Pablo Barrio via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 3 06:40:37 PST 2018
Author: pabbar01
Date: Mon Dec 3 06:40:37 2018
New Revision: 348142
URL: http://llvm.org/viewvc/llvm-project?rev=348142&view=rev
Log:
[AArch64] Add command-line option for SSBS
Summary:
SSBS (Speculative Store Bypass Safe) is only mandatory from 8.5
onwards but is optional from Armv8.0-A. This patch adds testing for
the ssbs command line option, added to allow enabling the feature
in previous Armv8-A architectures to 8.5.
Reviewers: olista01, samparker, aemerson
Reviewed By: samparker
Subscribers: javed.absar, kristof.beyls, cfe-commits
Differential Revision: https://reviews.llvm.org/D54961
Added:
cfe/trunk/test/Driver/aarch64-ssbs.c
Added: cfe/trunk/test/Driver/aarch64-ssbs.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/aarch64-ssbs.c?rev=348142&view=auto
==============================================================================
--- cfe/trunk/test/Driver/aarch64-ssbs.c (added)
+++ cfe/trunk/test/Driver/aarch64-ssbs.c Mon Dec 3 06:40:37 2018
@@ -0,0 +1,9 @@
+// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8a+ssbs %s 2>&1 | FileCheck %s
+// CHECK: "-target-feature" "+ssbs"
+
+// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8a+nossbs %s 2>&1 | FileCheck %s --check-prefix=NOSSBS
+// NOSSBS: "-target-feature" "-ssbs"
+
+// RUN: %clang -### -target aarch64-none-none-eabi %s 2>&1 | FileCheck %s --check-prefix=ABSENTSSBS
+// ABSENTSSBS-NOT: "-target-feature" "+ssbs"
+// ABSENTSSBS-NOT: "-target-feature" "-ssbs"
More information about the cfe-commits
mailing list