1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00

AMDGPU: Use ImmLeaf

This solves one GlobalISel importer error, but the pattern still fails
for another reason.
This commit is contained in:
Matt Arsenault 2020-01-06 15:39:05 -05:00 committed by Matt Arsenault
parent e299148752
commit d483a5285e

View File

@ -775,8 +775,8 @@ def NegSubInlineConst16 : ImmLeaf<i16, [{
return Imm < -16 && Imm >= -64;
}], NegateImm>;
def ShiftAmt32Imm : PatLeaf <(imm), [{
return N->getZExtValue() < 32;
def ShiftAmt32Imm : ImmLeaf <i32, [{
return Imm < 32;
}]>;
def getNegV2I16Imm : SDNodeXForm<build_vector, [{