Skip to content

Commit b5dafec

Browse files
committed
Clean up tests
1 parent 3223272 commit b5dafec

File tree

2 files changed

+19
-24
lines changed

2 files changed

+19
-24
lines changed

clang/test/CodeGen/aarch64-execute-only.c

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
1-
// RUN: %clang -target aarch64 -### %s 2>&1 \
2-
// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY
3-
4-
// RUN: %clang -target aarch64 -### -mexecute-only %s 2>&1 \
5-
// RUN: | FileCheck %s -check-prefix CHECK-EXECUTE-ONLY
6-
7-
// RUN: %clang -target aarch64 -### -mexecute-only -mno-execute-only %s 2>&1 \
8-
// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY
9-
10-
11-
// -mpure-code flag for GCC compatibility
12-
// RUN: %clang -target aarch64 -### %s 2>&1 \
13-
// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY
14-
15-
// RUN: %clang -target aarch64 -### -mpure-code %s 2>&1 \
16-
// RUN: | FileCheck %s -check-prefix CHECK-EXECUTE-ONLY
17-
18-
// RUN: %clang -target aarch64 -### -mpure-code -mno-pure-code %s 2>&1 \
19-
// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY
1+
// RUN: %clang -target aarch64 -### %s 2>&1 | \
2+
// RUN: FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY
3+
// RUN: %clang -target aarch64 -### -mexecute-only %s 2>&1 | \
4+
// RUN: FileCheck %s -check-prefix CHECK-EXECUTE-ONLY
5+
// RUN: %clang -target aarch64 -### -mexecute-only -mno-execute-only %s 2>&1 | \
6+
// RUN: FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY
7+
8+
/// -mpure-code flag for GCC compatibility
9+
// RUN: %clang -target aarch64 -### %s 2>&1 | \
10+
// RUN: FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY
11+
// RUN: %clang -target aarch64 -### -mpure-code %s 2>&1 | \
12+
// RUN: FileCheck %s -check-prefix CHECK-EXECUTE-ONLY
13+
// RUN: %clang -target aarch64 -### -mpure-code -mno-pure-code %s 2>&1 | \
14+
// RUN: FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY
2015

2116
// CHECK-NO-EXECUTE-ONLY-NOT: "+execute-only"
2217
// CHECK-EXECUTE-ONLY: "+execute-only"
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// RUN: %clang --sysroot=%S/Inputs -c -fdriver-only -Werror --target=aarch64-unknown-linux-gnu \
2-
// RUN: -mexecute-only %s 2>&1 | count 0
2+
// RUN: -mexecute-only %s 2>&1 | count 0
33

4-
// RUN: %clang -### --target=aarch64-unknown-linux-gnu -x assembler -mexecute-only %s -c -### 2>&1 \
5-
// RUN: | FileCheck %s --check-prefix=CHECK-NO-EXECUTE-ONLY-ASM
4+
// RUN: %clang -### --target=aarch64-unknown-linux-gnu -x assembler -mexecute-only %s -c -### 2>&1 | \
5+
// RUN: FileCheck %s --check-prefix=CHECK-NO-EXECUTE-ONLY-ASM
66
// RUN: %clang -### --multi-lib-config=%S/Inputs/multilib/empty.yaml --sysroot= \
7-
// RUN: --target=aarch64-none-elf -x assembler -mexecute-only %s -c -### 2>&1 \
8-
// RUN: | FileCheck %s --check-prefix=CHECK-NO-EXECUTE-ONLY-ASM
7+
// RUN: --target=aarch64-none-elf -x assembler -mexecute-only %s -c -### 2>&1 | \
8+
// RUN: FileCheck %s --check-prefix=CHECK-NO-EXECUTE-ONLY-ASM
99
// CHECK-NO-EXECUTE-ONLY-ASM: warning: argument unused during compilation: '-mexecute-only'

0 commit comments

Comments
 (0)