Skip to content

Commit 62175a4

Browse files
committed
[clang] Update ptrauth ABI versioning tests to avoid -arch.
And remove a no-longer-necessary defaults.c variant of the test.
1 parent 6db7b25 commit 62175a4

File tree

2 files changed

+11
-23
lines changed

2 files changed

+11
-23
lines changed

clang/test/Driver/arch-arm64e-abi-versioning-defaults.c

Lines changed: 0 additions & 16 deletions
This file was deleted.

clang/test/Driver/arch-arm64e-abi-versioning.c

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
// Check the ABI version support.
22

3-
// RUN: %clang -fptrauth-abi-version=5 -arch arm64e -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix NOKERNELABIVERSION
4-
// RUN: %clang -fptrauth-abi-version=5 -mkernel -arch arm64e -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix KERNELABIVERSION
5-
// RUN: %clang -fptrauth-abi-version=5 -fapple-kext -arch arm64e -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix KERNELABIVERSION
6-
// RUN: %clang -fptrauth-abi-version=5 -fptrauth-kernel-abi-version -arch arm64e -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix KERNELABIVERSION
3+
// RUN: %clang -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION-DEFAULT --check-prefix NOKERNELABIVERSION
4+
// RUN: %clang -mkernel -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION-DEFAULT --check-prefix KERNELABIVERSION
5+
// RUN: %clang -fapple-kext -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION-DEFAULT --check-prefix KERNELABIVERSION
6+
//
7+
// RUN: %clang -fptrauth-abi-version=5 -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix NOKERNELABIVERSION
8+
// RUN: %clang -fptrauth-abi-version=5 -mkernel -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix KERNELABIVERSION
9+
// RUN: %clang -fptrauth-abi-version=5 -fapple-kext -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix KERNELABIVERSION
10+
// RUN: %clang -fptrauth-abi-version=5 -fptrauth-kernel-abi-version -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix KERNELABIVERSION
711

8-
// RUN: %clang -fno-ptrauth-abi-version -arch arm64e -c %s -### 2>&1 | FileCheck %s --check-prefix NOABIVERSION --check-prefix NOKERNELABIVERSION
9-
// RUN: %clang -fptrauth-abi-version=5 -fno-ptrauth-abi-version -arch arm64e -c %s -### 2>&1 | FileCheck %s --check-prefix NOABIVERSION --check-prefix NOKERNELABIVERSION
10-
// RUN: %clang -fno-ptrauth-abi-version -fptrauth-abi-version=5 -arch arm64e -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix NOKERNELABIVERSION
12+
// RUN: %clang -fno-ptrauth-abi-version -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix NOABIVERSION --check-prefix NOKERNELABIVERSION
13+
// RUN: %clang -fptrauth-abi-version=5 -fno-ptrauth-abi-version -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix NOABIVERSION --check-prefix NOKERNELABIVERSION
14+
// RUN: %clang -fno-ptrauth-abi-version -fptrauth-abi-version=5 -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix NOKERNELABIVERSION
1115

1216
// ABIVERSION: "-fptrauth-abi-version=5"
1317
// ABIVERSION-DEFAULT: "-fptrauth-abi-version=0"

0 commit comments

Comments
 (0)