llvm.org GIT mirror llvm / 8d3ca7c
AMDGPU/GlobalISel: Mark 32-bit G_SHL as legal Reviewers: arsenm Reviewed By: arsenm Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, rovka, kristof.beyls, igorb, dstuttard, tpr, t-tye, llvm-commits Differential Revision: https://reviews.llvm.org/D34589 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306298 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 2 years ago
2 changed file(s) with 20 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
6868 setAction({G_SELECT, S32}, Legal);
6969 setAction({G_SELECT, 1, S1}, Legal);
7070
71 setAction({G_SHL, S32}, Legal);
72
7173 setAction({G_STORE, S32}, Legal);
7274 setAction({G_STORE, 1, P1}, Legal);
7375
0 # RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -O0 -run-pass=legalizer -global-isel %s -o - | FileCheck %s
1
2 ---
3 name: test_shl
4 registers:
5 - { id: 0, class: _ }
6 - { id: 1, class: _ }
7 - { id: 2, class: _ }
8 body: |
9 bb.0.entry:
10 liveins: %vgpr0, %vgpr1
11 ; CHECK-LABEL: name: test_shl
12 ; CHECK: %2(s32) = G_SHL %0, %1
13
14 %0(s32) = COPY %vgpr0
15 %1(s32) = COPY %vgpr1
16 %2(s32) = G_SHL %0, %1
17 ...