llvm.org GIT mirror llvm / 3ec91df
AMDGPU/GlobalISel: Define instruction mapping for G_FPTOUI Patch by Tom Stellard git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326533 91177308-0d34-0410-b5e6-96231b3b80d8 Matt Arsenault 2 years ago
2 changed file(s) with 32 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
292292 // Fall-through
293293
294294 case AMDGPU::G_FADD:
295 case AMDGPU::G_FPTOUI:
295296 case AMDGPU::G_FMUL:
296297 return getDefaultMappingVOP(MI);
297298 case AMDGPU::G_IMPLICIT_DEF: {
0 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
1 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect -global-isel %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck %s
2 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect -global-isel %s -verify-machineinstrs -o - -regbankselect-greedy | FileCheck %s
3
4 ---
5 name: fptoui_s
6 legalized: true
7
8 body: |
9 bb.0:
10 liveins: $sgpr0
11 ; CHECK-LABEL: name: fptoui_s
12 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
13 ; CHECK: [[FPTOUI:%[0-9]+]]:vgpr(s32) = G_FPTOUI [[COPY]](s32)
14 %0:_(s32) = COPY $sgpr0
15 %1:_(s32) = G_FPTOUI %0
16 ...
17
18 ---
19 name: fptoui_v
20 legalized: true
21
22 body: |
23 bb.0:
24 liveins: $vgpr0
25 ; CHECK-LABEL: name: fptoui_v
26 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
27 ; CHECK: [[FPTOUI:%[0-9]+]]:vgpr(s32) = G_FPTOUI [[COPY]](s32)
28 %0:_(s32) = COPY $vgpr0
29 %1:_(s32) = G_FPTOUI %0
30 ...