Skip to content

Commit 149c2a9

Browse files
committed
Update the existing tests
1 parent 1e5cc6a commit 149c2a9

20 files changed

+35
-35
lines changed

clang/test/CodeGen/ptrauth-authenticated-null-values.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -triple arm64-apple-ios -fptrauth-calls -fptrauth-intrinsics -emit-llvm %s -O0 -o - | FileCheck %s
1+
// RUN: %clang_cc1 -triple arm64-apple-ios -target-feature "+pauth" -fptrauth-calls -fptrauth-intrinsics -emit-llvm %s -O0 -o - | FileCheck %s
22

33
typedef void *__ptrauth(2, 0, 0, "authenticates-null-values") authenticated_null;
44
typedef void *__ptrauth(2, 1, 0, "authenticates-null-values") authenticated_null_addr_disc;

clang/test/CodeGen/ptrauth-blocks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -triple arm64-apple-ios -fptrauth-calls -fptrauth-intrinsics -fblocks -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -triple arm64-apple-ios -target-feature "+pauth" -fptrauth-calls -fptrauth-intrinsics -fblocks -emit-llvm %s -o - | FileCheck %s
22

33
void (^blockptr)(void);
44

clang/test/CodeGen/ptrauth-cfstr-isa.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clang_cc1 -cc1 -internal-isystem /Users/oliver/llvm-internal/debug/lib/clang/11.0.0/include -nostdsysteminc -fptrauth-calls -fptrauth-objc-isa-mode=sign-and-strip -triple arm64-apple-ios -emit-llvm -O2 -disable-llvm-passes -o - %s | FileCheck %s
2-
// RUN: %clang_cc1 -cc1 -internal-isystem /Users/oliver/llvm-internal/debug/lib/clang/11.0.0/include -nostdsysteminc -fptrauth-calls -fptrauth-objc-isa-mode=sign-and-auth -triple arm64-apple-ios -emit-llvm -O2 -disable-llvm-passes -o - %s | FileCheck %s
1+
// RUN: %clang_cc1 -cc1 -internal-isystem /Users/oliver/llvm-internal/debug/lib/clang/11.0.0/include -nostdsysteminc -fptrauth-calls -fptrauth-objc-isa-mode=sign-and-strip -triple arm64-apple-ios -target-feature "+pauth" -emit-llvm -O2 -disable-llvm-passes -o - %s | FileCheck %s
2+
// RUN: %clang_cc1 -cc1 -internal-isystem /Users/oliver/llvm-internal/debug/lib/clang/11.0.0/include -nostdsysteminc -fptrauth-calls -fptrauth-objc-isa-mode=sign-and-auth -triple arm64-apple-ios -target-feature "+pauth" -emit-llvm -O2 -disable-llvm-passes -o - %s | FileCheck %s
33

44
#define CFSTR __builtin___CFStringMakeConstantString
55

clang/test/CodeGen/ptrauth-debuginfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -triple arm64-apple-ios \
1+
// RUN: %clang_cc1 -triple arm64-apple-ios -target-feature "+pauth" \
22
// RUN: -fptrauth-calls -fptrauth-intrinsics -emit-llvm -fblocks \
33
// RUN: %s -debug-info-kind=limited -o - | FileCheck %s
44

clang/test/CodeGen/ptrauth-function-attributes.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
// RUN: %clang_cc1 -triple arm64-apple-ios -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,OFF
1+
// RUN: %clang_cc1 -triple arm64-apple-ios -target-feature "+pauth" -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,OFF
22

3-
// RUN: %clang_cc1 -triple arm64-apple-ios -fptrauth-returns -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,RETS
4-
// RUN: %clang_cc1 -triple arm64e-apple-ios -fptrauth-returns -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,RETS
5-
// RUN: %clang_cc1 -triple arm64e-apple-ios -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,OFF
3+
// RUN: %clang_cc1 -triple arm64-apple-ios -target-feature "+pauth" -fptrauth-returns -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,RETS
4+
// RUN: %clang_cc1 -triple arm64e-apple-ios -target-feature "+pauth" -fptrauth-returns -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,RETS
5+
// RUN: %clang_cc1 -triple arm64e-apple-ios -target-feature "+pauth" -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,OFF
66

7-
// RUN: %clang_cc1 -triple arm64-apple-ios -fptrauth-calls -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,CALLS
8-
// RUN: %clang_cc1 -triple arm64e-apple-ios -fptrauth-calls -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,CALLS
9-
// RUN: %clang_cc1 -triple arm64e-apple-ios -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,OFF
7+
// RUN: %clang_cc1 -triple arm64-apple-ios -target-feature "+pauth" -fptrauth-calls -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,CALLS
8+
// RUN: %clang_cc1 -triple arm64e-apple-ios -target-feature "+pauth" -fptrauth-calls -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,CALLS
9+
// RUN: %clang_cc1 -triple arm64e-apple-ios -target-feature "+pauth" -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,OFF
1010

11-
// RUN: %clang_cc1 -triple arm64-apple-ios -fptrauth-auth-traps -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,TRAPS
12-
// RUN: %clang_cc1 -triple arm64e-apple-ios -fptrauth-auth-traps -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,TRAPS
13-
// RUN: %clang_cc1 -triple arm64e-apple-ios -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,OFF
11+
// RUN: %clang_cc1 -triple arm64-apple-ios -target-feature "+pauth" -fptrauth-auth-traps -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,TRAPS
12+
// RUN: %clang_cc1 -triple arm64e-apple-ios -target-feature "+pauth" -fptrauth-auth-traps -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,TRAPS
13+
// RUN: %clang_cc1 -triple arm64e-apple-ios -target-feature "+pauth" -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,OFF
1414

15-
// RUN: %clang_cc1 -triple arm64e-apple-ios -mbranch-target-enforce -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,BTI
15+
// RUN: %clang_cc1 -triple arm64e-apple-ios -target-feature "+pauth" -mbranch-target-enforce -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,BTI
1616

1717
// ALL-LABEL: define void @test() #0
1818
void test() {

clang/test/CodeGen/ptrauth-function-init-fail.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -triple arm64e-apple-ios -fptrauth-calls %s -verify -emit-llvm -S -o -
1+
// RUN: %clang_cc1 -triple arm64e-apple-ios -target-feature "+pauth" -fptrauth-calls %s -verify -emit-llvm -S -o -
22

33
void f(void);
44

clang/test/CodeGen/ptrauth-function-init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clang_cc1 %s -triple arm64e-apple-ios13 -fptrauth-calls -fptrauth-intrinsics -disable-llvm-passes -emit-llvm -o- | FileCheck %s
2-
// RUN: %clang_cc1 -xc++ %s -triple arm64e-apple-ios13 -fptrauth-calls -fptrauth-intrinsics -disable-llvm-passes -emit-llvm -o- | FileCheck %s --check-prefixes=CHECK,CXX
1+
// RUN: %clang_cc1 %s -triple arm64e-apple-ios13 -target-feature "+pauth" -fptrauth-calls -fptrauth-intrinsics -disable-llvm-passes -emit-llvm -o- | FileCheck %s
2+
// RUN: %clang_cc1 -xc++ %s -triple arm64e-apple-ios13 -target-feature "+pauth" -fptrauth-calls -fptrauth-intrinsics -disable-llvm-passes -emit-llvm -o- | FileCheck %s --check-prefixes=CHECK,CXX
33

44
#ifdef __cplusplus
55
extern "C" {

clang/test/CodeGen/ptrauth-function-lvalue-cast-disc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 %s -triple arm64e-apple-ios13 -fptrauth-calls -fptrauth-intrinsics -emit-llvm -o- -fptrauth-function-pointer-type-discrimination | FileCheck %s
1+
// RUN: %clang_cc1 %s -triple arm64e-apple-ios13 -target-feature "+pauth" -fptrauth-calls -fptrauth-intrinsics -emit-llvm -o- -fptrauth-function-pointer-type-discrimination | FileCheck %s
22

33
typedef void (*fptr_t)(void);
44

clang/test/CodeGen/ptrauth-function-lvalue-cast-undisc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 %s -triple arm64e-apple-ios13 -fptrauth-calls -fptrauth-intrinsics -emit-llvm -o- | FileCheck %s
1+
// RUN: %clang_cc1 %s -triple arm64e-apple-ios13 -target-feature "+pauth" -fptrauth-calls -fptrauth-intrinsics -emit-llvm -o- | FileCheck %s
22

33
typedef void (*fptr_t)(void);
44

clang/test/CodeGen/ptrauth-function.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clang_cc1 %s -fptrauth-function-pointer-type-discrimination -triple arm64e-apple-ios13 -fptrauth-calls -fptrauth-intrinsics -disable-llvm-passes -emit-llvm -o- | FileCheck %s --check-prefix=CHECK --check-prefix=CHECKC
2-
// RUN: %clang_cc1 -xc++ %s -fptrauth-function-pointer-type-discrimination -triple arm64e-apple-ios13 -fptrauth-calls -fptrauth-intrinsics -disable-llvm-passes -emit-llvm -o- | FileCheck %s --check-prefix=CHECK --check-prefix=CHECKCXX
1+
// RUN: %clang_cc1 %s -fptrauth-function-pointer-type-discrimination -triple arm64e-apple-ios13 -target-feature "+pauth" -fptrauth-calls -fptrauth-intrinsics -disable-llvm-passes -emit-llvm -o- | FileCheck %s --check-prefix=CHECK --check-prefix=CHECKC
2+
// RUN: %clang_cc1 -xc++ %s -fptrauth-function-pointer-type-discrimination -triple arm64e-apple-ios13 -target-feature "+pauth" -fptrauth-calls -fptrauth-intrinsics -disable-llvm-passes -emit-llvm -o- | FileCheck %s --check-prefix=CHECK --check-prefix=CHECKCXX
33

44
#ifdef __cplusplus
55
extern "C" {

clang/test/CodeGen/ptrauth-in-c-struct.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -triple arm64-apple-ios -fblocks -fptrauth-calls -fptrauth-returns -fptrauth-intrinsics -emit-llvm -o - %s | FileCheck %s
1+
// RUN: %clang_cc1 -triple arm64-apple-ios -target-feature "+pauth" -fblocks -fptrauth-calls -fptrauth-returns -fptrauth-intrinsics -emit-llvm -o - %s | FileCheck %s
22

33
#define AQ1_50 __ptrauth(1,1,50)
44
#define AQ2_30 __ptrauth(2,1,30)

clang/test/CodeGen/ptrauth-isa-masking.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -cc1 -nostdsysteminc -fptrauth-intrinsics -fptrauth-calls -fptrauth-objc-isa-mode=sign-and-auth -fptrauth-objc-isa-masking -triple arm64-apple-ios -emit-llvm -O0 -disable-llvm-passes -o - %s | FileCheck %s
1+
// RUN: %clang_cc1 -cc1 -nostdsysteminc -fptrauth-intrinsics -fptrauth-calls -fptrauth-objc-isa-mode=sign-and-auth -fptrauth-objc-isa-masking -triple arm64-apple-ios -target-feature "+pauth" -emit-llvm -O0 -disable-llvm-passes -o - %s | FileCheck %s
22
#if __has_feature(ptrauth_qualifier_authentication_mode)
33
#define test_ptrauth(a...) __ptrauth(a)
44
#else

clang/test/CodeGen/ptrauth-qualifier-loadstore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fptrauth-function-pointer-type-discrimination -triple arm64-apple-ios -fptrauth-calls -fptrauth-intrinsics -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -fptrauth-function-pointer-type-discrimination -triple arm64-apple-ios -target-feature "+pauth" -fptrauth-calls -fptrauth-intrinsics -emit-llvm %s -o - | FileCheck %s
22

33
#define IQ __ptrauth(1,0,50)
44
#define AQ __ptrauth(1,1,50)

clang/test/CodeGen/ptrauth-qualifier.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -triple arm64-apple-ios -fptrauth-calls -fptrauth-intrinsics -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -triple arm64-apple-ios -target-feature "+pauth" -fptrauth-calls -fptrauth-intrinsics -emit-llvm %s -o - | FileCheck %s
22

33
#include <ptrauth.h>
44

clang/test/CodeGen/ptrauth-restricted-intptr-qualifier.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -triple arm64-apple-ios -fptrauth-calls -fptrauth-intrinsics -emit-llvm %s -O0 -o - | FileCheck %s
1+
// RUN: %clang_cc1 -triple arm64-apple-ios -target-feature "+pauth" -fptrauth-calls -fptrauth-intrinsics -emit-llvm %s -O0 -o - | FileCheck %s
22
#if __has_feature(ptrauth_restricted_intptr_qualifier)
33

44
__INTPTR_TYPE__ __ptrauth_restricted_intptr(1, 0, 56) g1 = 0;

clang/test/CodeGen/ptrauth-stripping.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -triple arm64-apple-ios -fptrauth-calls -fptrauth-intrinsics -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -triple arm64-apple-ios -target-feature "+pauth" -fptrauth-calls -fptrauth-intrinsics -emit-llvm %s -o - | FileCheck %s
22
#if __has_feature(ptrauth_qualifier_authentication_mode)
33

44
typedef void *NonePointer;

clang/test/CodeGen/ptrauth-weak_import.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -triple arm64-apple-ios -fptrauth-calls -fptrauth-intrinsics -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -triple arm64-apple-ios -target-feature "+pauth" -fptrauth-calls -fptrauth-intrinsics -emit-llvm %s -o - | FileCheck %s
22

33
extern void foo() __attribute__((weak_import));
44

clang/test/CodeGen/ptrauth.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %clang_cc1 -fptrauth-function-pointer-type-discrimination -triple arm64-apple-ios -fptrauth-calls -fptrauth-intrinsics -emit-llvm %s -o - | FileCheck -check-prefix=CHECK -check-prefix=NOPCH %s
2-
// RUN: %clang_cc1 -fptrauth-function-pointer-type-discrimination -triple arm64-apple-ios -fptrauth-calls -fptrauth-intrinsics -emit-pch %s -o %t.ast
3-
// RUN: %clang_cc1 -fptrauth-function-pointer-type-discrimination -triple arm64-apple-ios -fptrauth-calls -fptrauth-intrinsics -emit-llvm -x ast -o - %t.ast | FileCheck -check-prefix=CHECK -check-prefix=PCH %s
1+
// RUN: %clang_cc1 -fptrauth-function-pointer-type-discrimination -triple arm64-apple-ios -target-feature "+pauth" -fptrauth-calls -fptrauth-intrinsics -emit-llvm %s -o - | FileCheck -check-prefix=CHECK -check-prefix=NOPCH %s
2+
// RUN: %clang_cc1 -fptrauth-function-pointer-type-discrimination -triple arm64-apple-ios -target-feature "+pauth" -fptrauth-calls -fptrauth-intrinsics -emit-pch %s -o %t.ast
3+
// RUN: %clang_cc1 -fptrauth-function-pointer-type-discrimination -triple arm64-apple-ios -target-feature "+pauth" -fptrauth-calls -fptrauth-intrinsics -emit-llvm -x ast -o - %t.ast | FileCheck -check-prefix=CHECK -check-prefix=PCH %s
44

55
#define FNPTRKEY 0
66

clang/test/CodeGen/ptrauth_nop_cast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -triple arm64e-apple-ios13.0 -fptrauth-calls -fptrauth-intrinsics -O1 %s -emit-llvm -o - | FileCheck %s
1+
// RUN: %clang_cc1 -triple arm64e-apple-ios13.0 -target-feature "+pauth" -fptrauth-calls -fptrauth-intrinsics -O1 %s -emit-llvm -o - | FileCheck %s
22

33
#include <ptrauth.h>
44

clang/test/CodeGen/ubsan-function.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -o - %s -fsanitize=function -fno-sanitize-recover=all | FileCheck %s --check-prefixes=CHECK,64
22
// RUN: %clang_cc1 -triple aarch64-linux-gnu -emit-llvm -o - %s -fsanitize=function -fno-sanitize-recover=all | FileCheck %s --check-prefixes=CHECK,64
33
// RUN: %clang_cc1 -triple aarch64_be-linux-gnu -emit-llvm -o - %s -fsanitize=function -fno-sanitize-recover=all | FileCheck %s --check-prefixes=CHECK,64
4-
// RUN: %clang_cc1 -triple apple-macosx-arm64e -emit-llvm -o - %s -fsanitize=function -fno-sanitize-recover=all -fptrauth-calls | FileCheck %s --check-prefixes=CHECK,64,64e
4+
// RUN: %clang_cc1 -triple apple-macosx-arm64e -target-feature "+pauth" -emit-llvm -o - %s -fsanitize=function -fno-sanitize-recover=all -fptrauth-calls | FileCheck %s --check-prefixes=CHECK,64,64e
55
// RUN: %clang_cc1 -triple arm-none-eabi -emit-llvm -o - %s -fsanitize=function -fno-sanitize-recover=all | FileCheck %s --check-prefixes=CHECK,ARM,32
66

77
// CHECK: define{{.*}} void @_Z3funv() #0 !func_sanitize ![[FUNCSAN:.*]] {

0 commit comments

Comments
 (0)