ARM: do not generate BLX instructions on Cortex-M CPUs.
[oota-llvm.git] / lib / Target / ARM / ARMInstrInfo.td
index b2d6a68b96054a4b02db2ec5de0741e55aa41d89..f6cf69a2fbb4f8360b9d604d9f020cf92a25c2ba 100644 (file)
@@ -4117,7 +4117,7 @@ def UDIV : ADivA1I<0b011, (outs GPR:$Rd), (ins GPR:$Rn, GPR:$Rm), IIC_iDIV,
 //  Misc. Arithmetic Instructions.
 //
 
-def CLZ  : AMiscA1I<0b000010110, 0b0001, (outs GPR:$Rd), (ins GPR:$Rm),
+def CLZ  : AMiscA1I<0b00010110, 0b0001, (outs GPR:$Rd), (ins GPR:$Rm),
               IIC_iUNAr, "clz", "\t$Rd, $Rm",
               [(set GPR:$Rd, (ctlz GPR:$Rm))]>, Requires<[IsARM, HasV5T]>,
            Sched<[WriteALU]>;