Skip to content

Commit 3b5e9b6

Browse files
committed
- Updated Sema test - Removed run line from sve-intrinsics-perm-select.ll - Removed rogue newline
1 parent 897eb57 commit 3b5e9b6

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

clang/include/clang/Basic/arm_sve.td

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -980,9 +980,8 @@ defm SVCLASTA_N : SVEPerm<"svclasta[_n_{d}]", "sPsd", "aarch64_sve_clasta_n">;
980980
defm SVCLASTB : SVEPerm<"svclastb[_{d}]", "dPdd", "aarch64_sve_clastb">;
981981
defm SVCLASTB_N : SVEPerm<"svclastb[_n_{d}]", "sPsd", "aarch64_sve_clastb_n">;
982982

983-
let SVETargetGuard = "sve", SMETargetGuard = "sme2p2" in {
983+
let SVETargetGuard = "sve,sme2p2", SMETargetGuard = "sme2p2" in {
984984
def SVCOMPACT : SInst<"svcompact[_{d}]", "dPd", "ilUiUlfd", MergeNone, "aarch64_sve_compact", [VerifyRuntimeMode]>;
985-
986985
}
987986

988987
// Note: svdup_lane is implemented using the intrinsic for TBL to represent a
Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu \
2-
// RUN: -target-feature +sve -target-feature +sme -target-feature +ssve -target-feature +sme2p2 \
3-
// RUN: -fsyntax-only -verify %s
1+
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve \
2+
// RUN: -verify -verify-ignore-unexpected=error,note -emit-llvm -o - %s
3+
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sme \
4+
// RUN: -verify -verify-ignore-unexpected=error,note -emit-llvm -o - %s
45
// REQUIRES: aarch64-registered-target
56
// expected-no-diagnostics
67

7-
88
#include <arm_sve.h>
99

10-
void test_svcompact_streaming(svbool_t pg, svfloat32_t op) __arm_streaming {
11-
svcompact(pg, op);
10+
__attribute__((target("sme2p2")))
11+
void test_svcompact(svbool_t pg, svfloat32_t op) __arm_streaming{
12+
svcompact(pg, op);
13+
}
14+
15+
void test_svcompact_nofeature(svbool_t pg, svfloat32_t op) __arm_streaming{
16+
// expected-error@+1 {{'svcompact' needs target feature (sve, sme2p2)|(sme, sme2p2)}}
17+
svcompact(pg, op);
1218
}

llvm/test/CodeGen/AArch64/sve-intrinsics-perm-select.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
22
; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve < %s | FileCheck %s --check-prefixes=CHECK,SVE
33
; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2 < %s | FileCheck %s --check-prefixes=CHECK,SVE2
4-
; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sme2p2,+sme -force-streaming < %s | FileCheck %s --check-prefixes=CHECK,SSVE
54

65
;
76
; CLASTA (Vectors)

llvm/test/CodeGen/AArch64/sve2p2-intrinsics.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
22
; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2p2 < %s | FileCheck %s --check-prefixes=CHECK
33
; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve,+sme2p2 < %s | FileCheck %s --check-prefixes=CHECK
4-
; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sme2p2,+sme -force-streaming < %s | FileCheck %s --check-prefixes=CHECK
54

65
;
76
; COMPACT

0 commit comments

Comments
 (0)