Skip to content

Commit 66c2338

Browse files
simpal01MarkMurrayARM
authored andcommitted
[ATFE] Mark tests XFAIL via downstream patching. (arm#430)
Three tests need to be marked as XFAIL due to the following reasons: 1. FVP AND QEMU are unable to handle crash related signals. 2. There is no compatible library available when the tests are run with -frwpi. (cherry picked from commit 96378a4)
1 parent 7d748bf commit 66c2338

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From 8a5771253787cda5c8caa31b7e8a870840903084 Mon Sep 17 00:00:00 2001
2+
From: Simi Pallipurath <[email protected]>
3+
Date: Tue, 22 Jul 2025 15:08:45 +0100
4+
Subject: [Compiler-rt] FVP and QEMU do not support crash signal handling.
5+
6+
---
7+
compiler-rt/test/builtins/Unit/aarch64/emupac.c | 3 +++
8+
1 file changed, 3 insertions(+)
9+
10+
diff --git a/compiler-rt/test/builtins/Unit/aarch64/emupac.c b/compiler-rt/test/builtins/Unit/aarch64/emupac.c
11+
index 2140944b0eec..f3b8bb234f38 100644
12+
--- a/compiler-rt/test/builtins/Unit/aarch64/emupac.c
13+
+++ b/compiler-rt/test/builtins/Unit/aarch64/emupac.c
14+
@@ -2,6 +2,9 @@
15+
// RUN: %clang_builtins %s %librt -o %t
16+
// RUN: %run %t 1
17+
// RUN: %run %t 2
18+
+// Some test runners(FVP and QEMU) can not handle crash-related signals.
19+
+// TODO: A new LIT feature is needed to identify and handle this scenario.
20+
+// XFAIL: *
21+
// RUN: %expect_crash %run %t 3
22+
// RUN: %expect_crash %run %t 4
23+
24+
--
25+
2.34.1
26+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
From be2b0fe15e9717ddb4a75b0cd4e30b22ab614124 Mon Sep 17 00:00:00 2001
2+
From: Simi Pallipurath <[email protected]>
3+
Date: Tue, 22 Jul 2025 15:10:20 +0100
4+
Subject: [Clang] XFAIL tests with -frwpi as ATFE don't have an appropriate
5+
supporting library.
6+
7+
---
8+
clang/test/Driver/ropi-rwpi.c | 1 +
9+
clang/test/Preprocessor/arm-pic-predefines.c | 1 +
10+
2 files changed, 2 insertions(+)
11+
12+
diff --git a/clang/test/Driver/ropi-rwpi.c b/clang/test/Driver/ropi-rwpi.c
13+
index c925346d4a02..dafef6d7b9ff 100644
14+
--- a/clang/test/Driver/ropi-rwpi.c
15+
+++ b/clang/test/Driver/ropi-rwpi.c
16+
@@ -28,6 +28,7 @@
17+
// RUN: %clang -target arm-none-eabi -march=armv8m.main -frwpi -mcmse -fallow-unsupported -### -c %s 2>&1 | FileCheck --check-prefix=RWPI-CMSE-ALLOW-UNSUPPORTED --check-prefix=ROPI-CMSE-ALLOW-UNSUPPORTED %s
18+
// RUN: %clang -target arm-none-eabi -march=armv8m.main -fropi -mcmse -fallow-unsupported -### -c %s 2>&1 | FileCheck --check-prefix=ROPI-CMSE-ALLOW-UNSUPPORTED %s
19+
// RUN: %clang -target arm-none-eabi -march=armv8m.main -frwpi -fropi -mcmse -fallow-unsupported -### -c %s 2>&1 | FileCheck --check-prefix=ROPI-CMSE-ALLOW-UNSUPPORTED --check-prefix=RWPI-CMSE-ALLOW-UNSUPPORTED %s
20+
+// XFAIL: *
21+
22+
23+
// STATIC: "-mrelocation-model" "static"
24+
diff --git a/clang/test/Preprocessor/arm-pic-predefines.c b/clang/test/Preprocessor/arm-pic-predefines.c
25+
index 9082d7948511..e79701417b52 100644
26+
--- a/clang/test/Preprocessor/arm-pic-predefines.c
27+
+++ b/clang/test/Preprocessor/arm-pic-predefines.c
28+
@@ -4,6 +4,7 @@
29+
// RUN: %clang -target armv8--none-eabi -x c -E -dM %s -o - -fropi | FileCheck %s --check-prefix=ROPI --check-prefix=NO-RWPI
30+
// RUN: %clang -target armv8--none-eabi -x c -E -dM %s -o - -frwpi | FileCheck %s --check-prefix=NO-ROPI --check-prefix=RWPI
31+
// RUN: %clang -target armv8--none-eabi -x c -E -dM %s -o - -fropi -frwpi | FileCheck %s --check-prefix=ROPI --check-prefix=RWPI
32+
+// XFAIL: *
33+
34+
// Pre-defined macros for position-independence modes
35+
36+
--
37+
2.34.1
38+

0 commit comments

Comments
 (0)