Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LLVM project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Panda
LLVM project
Commits
0b1c9e8e
Commit
0b1c9e8e
authored
2 years ago
by
Simon Pilgrim
Browse files
Options
Downloads
Patches
Plain Diff
[X86] Add test case for PR44795
parent
9eda5fc0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/test/CodeGen/X86/vector-shuffle-fast-per-lane.ll
+26
-0
26 additions, 0 deletions
llvm/test/CodeGen/X86/vector-shuffle-fast-per-lane.ll
with
26 additions
and
0 deletions
llvm/test/CodeGen/X86/vector-shuffle-fast-per-lane.ll
0 → 100644
+
26
−
0
View file @
0b1c9e8e
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+avx2 | FileCheck %s --check-prefixes=SLOW
; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+avx512f | FileCheck %s --check-prefixes=SLOW
; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+avx2,+fast-variable-perlane-shuffle | FileCheck %s --check-prefixes=FAST
; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+avx512f,+fast-variable-perlane-shuffle | FileCheck %s --check-prefixes=FAST
;
; RUN: llc < %s -mtriple=x86_64-unknown -mcpu=znver1 | FileCheck %s --check-prefixes=SLOW
; RUN: llc < %s -mtriple=x86_64-unknown -mcpu=znver2 | FileCheck %s --check-prefixes=SLOW
; RUN: llc < %s -mtriple=x86_64-unknown -mcpu=znver3 | FileCheck %s --check-prefixes=FAST
; RUN: llc < %s -mtriple=x86_64-unknown -mcpu=haswell | FileCheck %s --check-prefixes=FAST
; RUN: llc < %s -mtriple=x86_64-unknown -mcpu=skx | FileCheck %s --check-prefixes=FAST
define
<
32
x
i8
>
@PR44795
(<
32
x
i8
>
%a0
)
{
; SLOW-LABEL: PR44795:
; SLOW: # %bb.0:
; SLOW-NEXT: vpshuflw {{.*#+}} ymm0 = ymm0[0,0,2,2,4,5,6,7,8,8,10,10,12,13,14,15]
; SLOW-NEXT: vpshufhw {{.*#+}} ymm0 = ymm0[0,1,2,3,4,4,6,6,8,9,10,11,12,12,14,14]
; SLOW-NEXT: retq
;
; FAST-LABEL: PR44795:
; FAST: # %bb.0:
; FAST-NEXT: vpshufb {{.*#+}} ymm0 = ymm0[0,1,0,1,4,5,4,5,8,9,8,9,12,13,12,13,16,17,16,17,20,21,20,21,24,25,24,25,28,29,28,29]
; FAST-NEXT: retq
%r
=
shufflevector
<
32
x
i8
>
%a0
,
<
32
x
i8
>
poison
,
<
32
x
i32
>
<
i32
0
,
i32
1
,
i32
0
,
i32
1
,
i32
4
,
i32
5
,
i32
4
,
i32
5
,
i32
8
,
i32
9
,
i32
8
,
i32
9
,
i32
12
,
i32
13
,
i32
12
,
i32
13
,
i32
16
,
i32
17
,
i32
16
,
i32
17
,
i32
20
,
i32
21
,
i32
20
,
i32
21
,
i32
24
,
i32
25
,
i32
24
,
i32
25
,
i32
28
,
i32
29
,
i32
28
,
i32
29
>
ret
<
32
x
i8
>
%r
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment