llvm.org GIT mirror llvm / 0e5b4bc
AMDGPU/GlobalISel: Define instruction mapping for G_FPTOSI Patch by Tom Stellard git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326534 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_FPTOSI:
295296 case AMDGPU::G_FPTOUI:
296297 case AMDGPU::G_FMUL:
297298 return getDefaultMappingVOP(MI);
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: fptosi_s
6 legalized: true
7
8 body: |
9 bb.0:
10 liveins: $sgpr0
11 ; CHECK-LABEL: name: fptosi_s
12 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
13 ; CHECK: [[FPTOSI:%[0-9]+]]:vgpr(s32) = G_FPTOSI [[COPY]](s32)
14 %0:_(s32) = COPY $sgpr0
15 %1:_(s32) = G_FPTOSI %0
16 ...
17
18 ---
19 name: fptosi_v
20 legalized: true
21
22 body: |
23 bb.0:
24 liveins: $vgpr0
25 ; CHECK-LABEL: name: fptosi_v
26 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
27 ; CHECK: [[FPTOSI:%[0-9]+]]:vgpr(s32) = G_FPTOSI [[COPY]](s32)
28 %0:_(s32) = COPY $vgpr0
29 %1:_(s32) = G_FPTOSI %0
30 ...