Skip to content

Commit 12430bf

Browse files
author
Diogo N. Sampaio
committedJan 25, 2019
[NFC][Clang] Add driver tests for sb and predres
Add tests that arguments for enabling/disabling sb and predres are correctly being or not passed by the driver. Differential Revision: https://reviews.llvm.org/D57060 llvm-svn: 352203
1 parent e4ed82d commit 12430bf

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
 

‎clang/test/Driver/aarch64-predres.c

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8a+predres %s 2>&1 | FileCheck %s
2+
// CHECK: "-target-feature" "+predres"
3+
// CHECK-NOT: "-target-feature" "-predres"
4+
5+
// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.5a+nopredres %s 2>&1 | FileCheck %s --check-prefix=NOPR
6+
// NOPR: "-target-feature" "-predres"
7+
// NOPR-NOT: "-target-feature" "+predres"
8+
9+
// RUN: %clang -### -target aarch64-none-none-eabi %s 2>&1 | FileCheck %s --check-prefix=ABSENT
10+
// ABSENT-NOT: "-target-feature" "+predres"
11+
// ABSENT-NOT: "-target-feature" "-predres"

‎clang/test/Driver/arm-sb.c

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// RUN: %clang -### -target arm-none-none-eabi -march=armv8a+sb %s 2>&1 | FileCheck %s
2+
// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8a+sb %s 2>&1 | FileCheck %s
3+
// CHECK: "-target-feature" "+sb"
4+
// CHECK-NOT: "-target-feature" "-sb"
5+
6+
// RUN: %clang -### -target arm-none-none-eabi -march=armv8.5a+nosb %s 2>&1 | FileCheck %s --check-prefix=NOSB
7+
// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.5a+nosb %s 2>&1 | FileCheck %s --check-prefix=NOSB
8+
// NOSB: "-target-feature" "-sb"
9+
// NOSB-NOT: "-target-feature" "+sb"
10+
11+
// RUN: %clang -### -target arm-none-none-eabi %s 2>&1 | FileCheck %s --check-prefix=ABSENT
12+
// RUN: %clang -### -target aarch64-none-none-eabi %s 2>&1 | FileCheck %s --check-prefix=ABSENT
13+
// ABSENT-NOT: "-target-feature" "+sb"
14+
// ABSENT-NOT: "-target-feature" "-sb"

0 commit comments

Comments
 (0)
Please sign in to comment.