-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1bd94a
commit aec1600
Showing
4 changed files
with
186 additions
and
32 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
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
83 changes: 83 additions & 0 deletions
83
llvm/test/CodeGen/AIE/aie2/GlobalISel/inst-select-aie-vshuffle.mir
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,83 @@ | ||
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py | ||
# | ||
# This file is licensed under the Apache License v2.0 with LLVM Exceptions. | ||
# See https://llvm.org/LICENSE.txt for license information. | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
# | ||
# (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates | ||
# | ||
# RUN: llc -mtriple aie2 -run-pass=instruction-select %s -verify-machineinstrs -o - | FileCheck %s | ||
|
||
--- | ||
name: vshuffle_32_m35 | ||
legalized: true | ||
regBankSelected: true | ||
tracksRegLiveness: true | ||
stack: | ||
- { id: 0, name: "", size: 128, alignment: 32 } | ||
body: | | ||
bb.0.entry: | ||
liveins: $x2 | ||
; CHECK-LABEL: name: vshuffle_32_m35 | ||
; CHECK: liveins: $x2 | ||
; CHECK-NEXT: {{ $}} | ||
; CHECK-NEXT: [[COPY:%[0-9]+]]:vec512 = COPY $x2 | ||
; CHECK-NEXT: [[MOV_RLC_imm10_pseudo:%[0-9]+]]:er = MOV_RLC_imm10_pseudo 29 | ||
; CHECK-NEXT: [[VSHUFFLE:%[0-9]+]]:vec512 = VSHUFFLE [[COPY]], [[COPY]], [[MOV_RLC_imm10_pseudo]] | ||
; CHECK-NEXT: $x0 = COPY [[VSHUFFLE]] | ||
; CHECK-NEXT: PseudoRET implicit $lr, implicit $x0 | ||
%1:vregbank(<16 x s32>) = COPY $x2 | ||
%2:gprregbank(s32) = G_CONSTANT i32 29 | ||
%0:vregbank(<16 x s32>) = G_AIE_VSHUFFLE %1:vregbank, %1:vregbank, %2:gprregbank(s32) | ||
$x0 = COPY %0:vregbank(<16 x s32>) | ||
PseudoRET implicit $lr, implicit $x0 | ||
... | ||
|
||
--- | ||
name: vshuffle_16_m35 | ||
legalized: true | ||
regBankSelected: true | ||
tracksRegLiveness: true | ||
stack: | ||
- { id: 0, name: "", size: 128, alignment: 32 } | ||
body: | | ||
bb.0.entry: | ||
liveins: $x2 | ||
; CHECK-LABEL: name: vshuffle_16_m35 | ||
; CHECK: liveins: $x2 | ||
; CHECK-NEXT: {{ $}} | ||
; CHECK-NEXT: [[COPY:%[0-9]+]]:vec512 = COPY $x2 | ||
; CHECK-NEXT: [[MOV_RLC_imm10_pseudo:%[0-9]+]]:er = MOV_RLC_imm10_pseudo 29 | ||
; CHECK-NEXT: [[VSHUFFLE:%[0-9]+]]:vec512 = VSHUFFLE [[COPY]], [[COPY]], [[MOV_RLC_imm10_pseudo]] | ||
; CHECK-NEXT: $x0 = COPY [[VSHUFFLE]] | ||
; CHECK-NEXT: PseudoRET implicit $lr, implicit $x0 | ||
%1:vregbank(<32 x s16>) = COPY $x2 | ||
%2:gprregbank(s32) = G_CONSTANT i32 29 | ||
%0:vregbank(<32 x s16>) = G_AIE_VSHUFFLE %1:vregbank, %1:vregbank, %2:gprregbank(s32) | ||
$x0 = COPY %0:vregbank(<32 x s16>) | ||
PseudoRET implicit $lr, implicit $x0 | ||
... | ||
|
||
--- | ||
name: vshuffle_8_m35 | ||
legalized: true | ||
regBankSelected: true | ||
tracksRegLiveness: true | ||
stack: | ||
- { id: 0, name: "", size: 128, alignment: 32 } | ||
body: | | ||
bb.0.entry: | ||
liveins: $x2 | ||
; CHECK-LABEL: name: vshuffle_8_m35 | ||
; CHECK: liveins: $x2 | ||
; CHECK-NEXT: {{ $}} | ||
; CHECK-NEXT: [[COPY:%[0-9]+]]:vec512 = COPY $x2 | ||
; CHECK-NEXT: [[MOV_RLC_imm10_pseudo:%[0-9]+]]:er = MOV_RLC_imm10_pseudo 29 | ||
; CHECK-NEXT: [[VSHUFFLE:%[0-9]+]]:vec512 = VSHUFFLE [[COPY]], [[COPY]], [[MOV_RLC_imm10_pseudo]] | ||
; CHECK-NEXT: $x0 = COPY [[VSHUFFLE]] | ||
; CHECK-NEXT: PseudoRET implicit $lr, implicit $x0 | ||
%1:vregbank(<64 x s8>) = COPY $x2 | ||
%2:gprregbank(s32) = G_CONSTANT i32 29 | ||
%0:vregbank(<64 x s8>) = G_AIE_VSHUFFLE %1:vregbank, %1:vregbank, %2:gprregbank(s32) | ||
$x0 = COPY %0:vregbank(<64 x s8>) | ||
PseudoRET implicit $lr, implicit $x0 |
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