mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
[SU]XT[BH] are only available on ARMv6 and up.
llvm-svn: 138373
This commit is contained in:
parent
87ffb9491b
commit
3832c5ac34
@ -2002,12 +2002,14 @@ bool ARMFastISel::SelectIntCast(const Instruction *I) {
|
||||
switch (SrcVT.getSimpleVT().SimpleTy) {
|
||||
default: return false;
|
||||
case MVT::i16:
|
||||
if (!Subtarget->hasV6Ops()) return false;
|
||||
if (isZext)
|
||||
Opc = isThumb ? ARM::t2UXTH : ARM::UXTH;
|
||||
else
|
||||
Opc = isThumb ? ARM::t2SXTH : ARM::SXTH;
|
||||
break;
|
||||
case MVT::i8:
|
||||
if (!Subtarget->hasV6Ops()) return false;
|
||||
if (isZext)
|
||||
Opc = isThumb ? ARM::t2UXTB : ARM::UXTB;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user