AMDGPU/GlobalISel: Mark i32->i64 zext as legal

llvm-svn: 326481
This commit is contained in:
Matt Arsenault 2018-03-01 20:56:21 +00:00
parent c61ff3bef1
commit 0529a8e2de
2 changed files with 17 additions and 0 deletions

View File

@ -66,6 +66,9 @@ AMDGPULegalizerInfo::AMDGPULegalizerInfo() {
setAction({G_FMUL, S32}, Legal);
setAction({G_ZEXT, S64}, Legal);
setAction({G_ZEXT, 1, S32}, Legal);
setAction({G_FPTOSI, S32}, Legal);
setAction({G_FPTOSI, 1, S32}, Legal);

View File

@ -0,0 +1,14 @@
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -run-pass=legalizer -global-isel %s -o - | FileCheck %s
---
name: test_zext_i32_to_i64
body: |
bb.0.entry:
liveins: $vgpr0
; CHECK-LABEL: name: test_zext_i32_to_i64
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
%0:_(s32) = COPY $vgpr0
%1:_(s64) = G_ZEXT %0
...