-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[AArch64][SME] Add intrinsics for vector groups ZERO #88114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c44bd42
WIP
Lukacma 1ed48b3
[AArch64][SME] Add intrinsics for vector groups ZERO
Lukacma 0852ec9
Merge branch 'llvm:main' into sme2p1-zero
Lukacma 260f6b6
Added tests for slicec created from imm addition
Lukacma 437268f
FIx to ZERO tests to test if offset is working
Lukacma 743301b
Merge branch 'main' into sme2p1-zero
Lukacma 11683e6
Update arm_sme.td
Lukacma File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
139 changes: 139 additions & 0 deletions
139
clang/test/CodeGen/aarch64-sme2p1-intrinsics/acle_sme2p1_zero.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 4 | ||
// REQUIRES: aarch64-registered-target | ||
|
||
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sme2p1 -S -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -p mem2reg,instcombine,tailcallelim | FileCheck %s | ||
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sme2p1 -S -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -p mem2reg,instcombine,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK | ||
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sme2p1 -S -disable-O0-optnone -Werror -Wall -o /dev/null %s | ||
|
||
#include <arm_sme.h> | ||
|
||
#define SVE_ACLE_FUNC(A1,A2) A1##A2 | ||
|
||
// CHECK-LABEL: define dso_local void @test_svzero_za64_vg1x2( | ||
// CHECK-SAME: i32 noundef [[SLICE:%.*]]) #[[ATTR0:[0-9]+]] { | ||
// CHECK-NEXT: entry: | ||
// CHECK-NEXT: tail call void @llvm.aarch64.sme.zero.za64.vg1x2(i32 [[SLICE]]) | ||
// CHECK-NEXT: ret void | ||
// | ||
// CPP-CHECK-LABEL: define dso_local void @_Z22test_svzero_za64_vg1x2j( | ||
// CPP-CHECK-SAME: i32 noundef [[SLICE:%.*]]) #[[ATTR0:[0-9]+]] { | ||
// CPP-CHECK-NEXT: entry: | ||
// CPP-CHECK-NEXT: tail call void @llvm.aarch64.sme.zero.za64.vg1x2(i32 [[SLICE]]) | ||
// CPP-CHECK-NEXT: ret void | ||
// | ||
void test_svzero_za64_vg1x2(uint32_t slice) __arm_streaming __arm_inout("za") | ||
{ | ||
SVE_ACLE_FUNC(svzero_za64,_vg1x2)(slice); | ||
} | ||
|
||
// CHECK-LABEL: define dso_local void @test_svzero_za64_vg1x4( | ||
// CHECK-SAME: i32 noundef [[SLICE:%.*]]) #[[ATTR0]] { | ||
// CHECK-NEXT: entry: | ||
// CHECK-NEXT: tail call void @llvm.aarch64.sme.zero.za64.vg1x4(i32 [[SLICE]]) | ||
// CHECK-NEXT: ret void | ||
// | ||
// CPP-CHECK-LABEL: define dso_local void @_Z22test_svzero_za64_vg1x4j( | ||
// CPP-CHECK-SAME: i32 noundef [[SLICE:%.*]]) #[[ATTR0]] { | ||
// CPP-CHECK-NEXT: entry: | ||
// CPP-CHECK-NEXT: tail call void @llvm.aarch64.sme.zero.za64.vg1x4(i32 [[SLICE]]) | ||
// CPP-CHECK-NEXT: ret void | ||
// | ||
void test_svzero_za64_vg1x4(uint32_t slice) __arm_streaming __arm_inout("za"){ | ||
SVE_ACLE_FUNC(svzero_za64,_vg1x4)(slice); | ||
} | ||
|
||
// CHECK-LABEL: define dso_local void @test_svzero_za64_vg2x1( | ||
// CHECK-SAME: i32 noundef [[SLICE:%.*]]) #[[ATTR0]] { | ||
// CHECK-NEXT: entry: | ||
// CHECK-NEXT: tail call void @llvm.aarch64.sme.zero.za64.vg2x1(i32 [[SLICE]]) | ||
// CHECK-NEXT: ret void | ||
// | ||
// CPP-CHECK-LABEL: define dso_local void @_Z22test_svzero_za64_vg2x1j( | ||
// CPP-CHECK-SAME: i32 noundef [[SLICE:%.*]]) #[[ATTR0]] { | ||
// CPP-CHECK-NEXT: entry: | ||
// CPP-CHECK-NEXT: tail call void @llvm.aarch64.sme.zero.za64.vg2x1(i32 [[SLICE]]) | ||
// CPP-CHECK-NEXT: ret void | ||
// | ||
void test_svzero_za64_vg2x1(uint32_t slice) __arm_streaming __arm_inout("za"){ | ||
SVE_ACLE_FUNC(svzero_za64,_vg2x1)(slice); | ||
} | ||
|
||
// CHECK-LABEL: define dso_local void @test_svzero_za64_vg2x2( | ||
// CHECK-SAME: i32 noundef [[SLICE:%.*]]) #[[ATTR0]] { | ||
// CHECK-NEXT: entry: | ||
// CHECK-NEXT: tail call void @llvm.aarch64.sme.zero.za64.vg2x2(i32 [[SLICE]]) | ||
// CHECK-NEXT: ret void | ||
// | ||
// CPP-CHECK-LABEL: define dso_local void @_Z22test_svzero_za64_vg2x2j( | ||
// CPP-CHECK-SAME: i32 noundef [[SLICE:%.*]]) #[[ATTR0]] { | ||
// CPP-CHECK-NEXT: entry: | ||
// CPP-CHECK-NEXT: tail call void @llvm.aarch64.sme.zero.za64.vg2x2(i32 [[SLICE]]) | ||
// CPP-CHECK-NEXT: ret void | ||
// | ||
void test_svzero_za64_vg2x2(uint32_t slice) __arm_streaming __arm_inout("za"){ | ||
SVE_ACLE_FUNC(svzero_za64,_vg2x2)(slice); | ||
} | ||
|
||
// CHECK-LABEL: define dso_local void @test_svzero_za64_vg2x4( | ||
// CHECK-SAME: i32 noundef [[SLICE:%.*]]) #[[ATTR0]] { | ||
// CHECK-NEXT: entry: | ||
// CHECK-NEXT: tail call void @llvm.aarch64.sme.zero.za64.vg2x4(i32 [[SLICE]]) | ||
// CHECK-NEXT: ret void | ||
// | ||
// CPP-CHECK-LABEL: define dso_local void @_Z22test_svzero_za64_vg2x4j( | ||
// CPP-CHECK-SAME: i32 noundef [[SLICE:%.*]]) #[[ATTR0]] { | ||
// CPP-CHECK-NEXT: entry: | ||
// CPP-CHECK-NEXT: tail call void @llvm.aarch64.sme.zero.za64.vg2x4(i32 [[SLICE]]) | ||
// CPP-CHECK-NEXT: ret void | ||
// | ||
void test_svzero_za64_vg2x4(uint32_t slice) __arm_streaming __arm_inout("za"){ | ||
SVE_ACLE_FUNC(svzero_za64,_vg2x4)(slice); | ||
} | ||
|
||
// CHECK-LABEL: define dso_local void @test_svzero_za64_vg4x1( | ||
// CHECK-SAME: i32 noundef [[SLICE:%.*]]) #[[ATTR0]] { | ||
// CHECK-NEXT: entry: | ||
// CHECK-NEXT: tail call void @llvm.aarch64.sme.zero.za64.vg4x1(i32 [[SLICE]]) | ||
// CHECK-NEXT: ret void | ||
// | ||
// CPP-CHECK-LABEL: define dso_local void @_Z22test_svzero_za64_vg4x1j( | ||
// CPP-CHECK-SAME: i32 noundef [[SLICE:%.*]]) #[[ATTR0]] { | ||
// CPP-CHECK-NEXT: entry: | ||
// CPP-CHECK-NEXT: tail call void @llvm.aarch64.sme.zero.za64.vg4x1(i32 [[SLICE]]) | ||
// CPP-CHECK-NEXT: ret void | ||
// | ||
void test_svzero_za64_vg4x1(uint32_t slice) __arm_streaming __arm_inout("za"){ | ||
SVE_ACLE_FUNC(svzero_za64,_vg4x1)(slice); | ||
} | ||
|
||
// CHECK-LABEL: define dso_local void @test_svzero_za64_vg4x2( | ||
// CHECK-SAME: i32 noundef [[SLICE:%.*]]) #[[ATTR0]] { | ||
// CHECK-NEXT: entry: | ||
// CHECK-NEXT: tail call void @llvm.aarch64.sme.zero.za64.vg4x2(i32 [[SLICE]]) | ||
// CHECK-NEXT: ret void | ||
// | ||
// CPP-CHECK-LABEL: define dso_local void @_Z22test_svzero_za64_vg4x2j( | ||
// CPP-CHECK-SAME: i32 noundef [[SLICE:%.*]]) #[[ATTR0]] { | ||
// CPP-CHECK-NEXT: entry: | ||
// CPP-CHECK-NEXT: tail call void @llvm.aarch64.sme.zero.za64.vg4x2(i32 [[SLICE]]) | ||
// CPP-CHECK-NEXT: ret void | ||
// | ||
void test_svzero_za64_vg4x2(uint32_t slice) __arm_streaming __arm_inout("za"){ | ||
SVE_ACLE_FUNC(svzero_za64,_vg4x2)(slice); | ||
} | ||
|
||
// CHECK-LABEL: define dso_local void @test_svzero_za64_vg4x4( | ||
// CHECK-SAME: i32 noundef [[SLICE:%.*]]) #[[ATTR0]] { | ||
// CHECK-NEXT: entry: | ||
// CHECK-NEXT: tail call void @llvm.aarch64.sme.zero.za64.vg4x4(i32 [[SLICE]]) | ||
// CHECK-NEXT: ret void | ||
// | ||
// CPP-CHECK-LABEL: define dso_local void @_Z22test_svzero_za64_vg4x4j( | ||
// CPP-CHECK-SAME: i32 noundef [[SLICE:%.*]]) #[[ATTR0]] { | ||
// CPP-CHECK-NEXT: entry: | ||
// CPP-CHECK-NEXT: tail call void @llvm.aarch64.sme.zero.za64.vg4x4(i32 [[SLICE]]) | ||
// CPP-CHECK-NEXT: ret void | ||
// | ||
void test_svzero_za64_vg4x4(uint32_t slice) __arm_streaming __arm_inout("za"){ | ||
SVE_ACLE_FUNC(svzero_za64,_vg4x4)(slice); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.