Skip to content

Commit 1d57594

Browse files
committed
[Clang][AArch64] NFC: Remove -DTEST_SME from RUN lines
We can do this in favour of checking the feature macro that is set when compiling for '+sme', like we do in other tests.
1 parent fecf5c7 commit 1d57594

40 files changed

+196
-196
lines changed

clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_create2-bfloat.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
44
// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
55
// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
6-
// RUN: %clang_cc1 -DTEST_SME -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
6+
// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
77

88
// REQUIRES: aarch64-registered-target
99

@@ -16,10 +16,10 @@
1616
#define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
1717
#endif
1818

19-
#ifndef TEST_SME
20-
#define ATTR
21-
#else
19+
#ifdef __ARM_FEATURE_SME
2220
#define ATTR __arm_streaming
21+
#else
22+
#define ATTR
2323
#endif
2424

2525
// CHECK-LABEL: @test_svcreate2_bf16(

clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_create2.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
44
// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
55
// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
6-
// RUN: %clang_cc1 -DTEST_SME -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
6+
// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
77

88
// REQUIRES: aarch64-registered-target
99

@@ -16,10 +16,10 @@
1616
#define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
1717
#endif
1818

19-
#ifndef TEST_SME
20-
#define ATTR
21-
#else
19+
#ifdef __ARM_FEATURE_SME
2220
#define ATTR __arm_streaming
21+
#else
22+
#define ATTR
2323
#endif
2424

2525
// CHECK-LABEL: @test_svcreate2_s8(

clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_create3-bfloat.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
44
// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
55
// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
6-
// RUN: %clang_cc1 -DTEST_SME -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
6+
// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
77

88
// REQUIRES: aarch64-registered-target
99

@@ -16,10 +16,10 @@
1616
#define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
1717
#endif
1818

19-
#ifndef TEST_SME
20-
#define ATTR
21-
#else
19+
#ifdef __ARM_FEATURE_SME
2220
#define ATTR __arm_streaming
21+
#else
22+
#define ATTR
2323
#endif
2424

2525
// CHECK-LABEL: @test_svcreate3_bf16(

clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_create3.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
44
// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
55
// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
6-
// RUN: %clang_cc1 -DTEST_SME -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
6+
// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
77

88
// REQUIRES: aarch64-registered-target
99

@@ -16,10 +16,10 @@
1616
#define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
1717
#endif
1818

19-
#ifndef TEST_SME
20-
#define ATTR
21-
#else
19+
#ifdef __ARM_FEATURE_SME
2220
#define ATTR __arm_streaming
21+
#else
22+
#define ATTR
2323
#endif
2424

2525
// CHECK-LABEL: @test_svcreate3_s8(

clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_create4-bfloat.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
44
// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
55
// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
6-
// RUN: %clang_cc1 -DTEST_SME -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
6+
// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
77

88
// REQUIRES: aarch64-registered-target
99

@@ -16,10 +16,10 @@
1616
#define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
1717
#endif
1818

19-
#ifndef TEST_SME
20-
#define ATTR
21-
#else
19+
#ifdef __ARM_FEATURE_SME
2220
#define ATTR __arm_streaming
21+
#else
22+
#define ATTR
2323
#endif
2424

2525
// CHECK-LABEL: @test_svcreate4_bf16(

clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_create4.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
44
// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
55
// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
6-
// RUN: %clang_cc1 -DTEST_SME -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
6+
// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
77

88
// REQUIRES: aarch64-registered-target
99

@@ -16,10 +16,10 @@
1616
#define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
1717
#endif
1818

19-
#ifndef TEST_SME
20-
#define ATTR
21-
#else
19+
#ifdef __ARM_FEATURE_SME
2220
#define ATTR __arm_streaming
21+
#else
22+
#define ATTR
2323
#endif
2424

2525
// CHECK-LABEL: @test_svcreate4_s8(

clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get2-bfloat.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
44
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
55
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
6-
// RUN: %clang_cc1 -DTEST_SME -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
6+
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
77

88
// REQUIRES: aarch64-registered-target
99

@@ -16,10 +16,10 @@
1616
#define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
1717
#endif
1818

19-
#ifndef TEST_SME
20-
#define ATTR
21-
#else
19+
#ifdef __ARM_FEATURE_SME
2220
#define ATTR __arm_streaming
21+
#else
22+
#define ATTR
2323
#endif
2424

2525
// CHECK-LABEL: @test_svget2_bf16_0(

clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get2.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
66
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
77
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
8-
// RUN: %clang_cc1 -DTEST_SME -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
8+
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
99
#include <arm_sve.h>
1010

1111
#ifdef SVE_OVERLOADED_FORMS
@@ -15,10 +15,10 @@
1515
#define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
1616
#endif
1717

18-
#ifndef TEST_SME
19-
#define ATTR
20-
#else
18+
#ifdef __ARM_FEATURE_SME
2119
#define ATTR __arm_streaming
20+
#else
21+
#define ATTR
2222
#endif
2323

2424
// CHECK-LABEL: @test_svget2_s8(

clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get3-bfloat.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
44
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
55
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
6-
// RUN: %clang_cc1 -DTEST_SME -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
6+
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
77

88
// REQUIRES: aarch64-registered-target
99

@@ -16,10 +16,10 @@
1616
#define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
1717
#endif
1818

19-
#ifndef TEST_SME
20-
#define ATTR
21-
#else
19+
#ifdef __ARM_FEATURE_SME
2220
#define ATTR __arm_streaming
21+
#else
22+
#define ATTR
2323
#endif
2424

2525
// CHECK-LABEL: @test_svget3_bf16_0(

clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get3.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
66
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
77
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
8-
// RUN: %clang_cc1 -DTEST_SME -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
8+
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
99

1010
#include <arm_sve.h>
1111

@@ -16,10 +16,10 @@
1616
#define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
1717
#endif
1818

19-
#ifndef TEST_SME
20-
#define ATTR
21-
#else
19+
#ifdef __ARM_FEATURE_SME
2220
#define ATTR __arm_streaming
21+
#else
22+
#define ATTR
2323
#endif
2424

2525
// CHECK-LABEL: @test_svget3_s8(

clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get4-bfloat.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
44
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
55
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
6-
// RUN: %clang_cc1 -DTEST_SME -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
6+
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
77

88
// REQUIRES: aarch64-registered-target
99

@@ -16,10 +16,10 @@
1616
#define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
1717
#endif
1818

19-
#ifndef TEST_SME
20-
#define ATTR
21-
#else
19+
#ifdef __ARM_FEATURE_SME
2220
#define ATTR __arm_streaming
21+
#else
22+
#define ATTR
2323
#endif
2424

2525
// CHECK-LABEL: @test_svget4_bf16_0(

clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get4.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
66
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
77
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
8-
// RUN: %clang_cc1 -DTEST_SME -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
8+
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
99
#include <arm_sve.h>
1010

1111
#ifdef SVE_OVERLOADED_FORMS
@@ -15,10 +15,10 @@
1515
#define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
1616
#endif
1717

18-
#ifndef TEST_SME
19-
#define ATTR
20-
#else
18+
#ifdef __ARM_FEATURE_SME
2119
#define ATTR __arm_streaming
20+
#else
21+
#define ATTR
2222
#endif
2323

2424
// NOTE: For these tests clang converts the struct parameter into

clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_set2-bfloat.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
44
// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
55
// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
6-
// RUN: %clang_cc1 -DTEST_SME -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
6+
// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
77

88
// REQUIRES: aarch64-registered-target
99

@@ -16,10 +16,10 @@
1616
#define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
1717
#endif
1818

19-
#ifndef TEST_SME
20-
#define ATTR
21-
#else
19+
#ifdef __ARM_FEATURE_SME
2220
#define ATTR __arm_streaming
21+
#else
22+
#define ATTR
2323
#endif
2424

2525
// CHECK-LABEL: @test_svset2_bf16_0(

clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_set2.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
44
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
55
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
6-
// RUN: %clang_cc1 -DTEST_SME -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
6+
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
77

88
// REQUIRES: aarch64-registered-target
99

@@ -16,10 +16,10 @@
1616
#define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
1717
#endif
1818

19-
#ifndef TEST_SME
20-
#define ATTR
21-
#else
19+
#ifdef __ARM_FEATURE_SME
2220
#define ATTR __arm_streaming
21+
#else
22+
#define ATTR
2323
#endif
2424

2525
// CHECK-LABEL: @test_svset2_s8(

clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_set3-bfloat.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
44
// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
55
// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
6-
// RUN: %clang_cc1 -DTEST_SME -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
6+
// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
77

88
// REQUIRES: aarch64-registered-target
99

@@ -16,10 +16,10 @@
1616
#define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
1717
#endif
1818

19-
#ifndef TEST_SME
20-
#define ATTR
21-
#else
19+
#ifdef __ARM_FEATURE_SME
2220
#define ATTR __arm_streaming
21+
#else
22+
#define ATTR
2323
#endif
2424

2525
// CHECK-LABEL: @test_svset3_bf16_0(

clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_set3.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
44
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
55
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
6-
// RUN: %clang_cc1 -DTEST_SME -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
6+
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
77

88
// REQUIRES: aarch64-registered-target
99

@@ -16,10 +16,10 @@
1616
#define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
1717
#endif
1818

19-
#ifndef TEST_SME
20-
#define ATTR
21-
#else
19+
#ifdef __ARM_FEATURE_SME
2220
#define ATTR __arm_streaming
21+
#else
22+
#define ATTR
2323
#endif
2424

2525
// NOTE: For these tests clang converts the struct parameter into

0 commit comments

Comments
 (0)