llvm.org GIT mirror llvm / f366f4c
AMDGPU/GlobalISel: Mark 32-bit integer constants 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/D33115 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302919 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 2 years ago
2 changed file(s) with 21 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3232 const LLT P1 = LLT::pointer(1, 64);
3333 const LLT P2 = LLT::pointer(2, 64);
3434
35 setAction({G_CONSTANT, S32}, Legal);
3536 setAction({G_CONSTANT, S64}, Legal);
3637
3738 setAction({G_GEP, P1}, Legal);
0 # RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -O0 -run-pass=legalizer -global-isel %s -o - | FileCheck %s
1
2 --- |
3 define void @test_constant() {
4 entry:
5 ret void
6 }
7 ...
8
9 ---
10 name: test_constant
11 registers:
12 - { id: 0, class: _ }
13 body: |
14 bb.0.entry:
15 ; CHECK-LABEL: name: test_constant
16 ; CHECK: %0(s32) = G_CONSTANT i32 5
17
18 %0(s32) = G_CONSTANT i32 5
19 ...