-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AArch64][SME2] Add SME2 builtins for zero { zt0 } (#72274)
See ARM-software/acle#217 Patch by: Kerry McLaughlin kerry.mclaughlin@arm.com
- Loading branch information
Showing
8 changed files
with
74 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
23 changes: 23 additions & 0 deletions
23
clang/test/CodeGen/aarch64-sme2-intrinsics/acle_sme2_zero_zt.c
This file contains 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,23 @@ | ||
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py | ||
|
||
// REQUIRES: aarch64-registered-target | ||
|
||
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sme2 -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 +sme2 -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 +sme2 -S -disable-O0-optnone -Werror -Wall -o /dev/null %s | ||
|
||
#include <arm_sme_draft_spec_subject_to_change.h> | ||
|
||
// CHECK-LABEL: @test_svzero_zt( | ||
// CHECK-NEXT: entry: | ||
// CHECK-NEXT: tail call void @llvm.aarch64.sme.zero.zt(i32 0) | ||
// CHECK-NEXT: ret void | ||
// | ||
// CPP-CHECK-LABEL: @_Z14test_svzero_ztv( | ||
// CPP-CHECK-NEXT: entry: | ||
// CPP-CHECK-NEXT: tail call void @llvm.aarch64.sme.zero.zt(i32 0) | ||
// CPP-CHECK-NEXT: ret void | ||
// | ||
void test_svzero_zt(void) __arm_streaming_compatible __arm_shared_za { | ||
svzero_zt(0); | ||
} |
This file contains 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 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 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 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 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 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,13 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2 | ||
; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sme2 < %s | FileCheck %s | ||
|
||
define void @zero_zt0() { | ||
; CHECK-LABEL: zero_zt0: | ||
; CHECK: // %bb.0: | ||
; CHECK-NEXT: zero { zt0 } | ||
; CHECK-NEXT: ret | ||
call void @llvm.aarch64.sme.zero.zt(i32 0) | ||
ret void | ||
} | ||
|
||
declare void @llvm.aarch64.sme.zero.zt(i32) |