llvm.org GIT mirror llvm / df1563c
AMDGPU/GlobalISel: Mark i32->i64 zext as legal git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326481 91177308-0d34-0410-b5e6-96231b3b80d8 Matt Arsenault 2 years ago
2 changed file(s) with 17 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
6565
6666 setAction({G_FMUL, S32}, Legal);
6767
68 setAction({G_ZEXT, S64}, Legal);
69 setAction({G_ZEXT, 1, S32}, Legal);
70
6871 setAction({G_FPTOSI, S32}, Legal);
6972 setAction({G_FPTOSI, 1, S32}, Legal);
7073
0 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
1 # RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -run-pass=legalizer -global-isel %s -o - | FileCheck %s
2
3 ---
4 name: test_zext_i32_to_i64
5 body: |
6 bb.0.entry:
7 liveins: $vgpr0
8
9 ; CHECK-LABEL: name: test_zext_i32_to_i64
10 ; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
11 %0:_(s32) = COPY $vgpr0
12 %1:_(s64) = G_ZEXT %0
13 ...