forked from OSchip/llvm-project
AMDGPU/GlobalISel: Mark i32->i64 zext as legal
llvm-svn: 326481
This commit is contained in:
parent
c61ff3bef1
commit
0529a8e2de
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
...
|
Loading…
Reference in New Issue