forked from OSchip/llvm-project
Add missing mul aliases for armv4 support. Add checks that armv4 can
assemble the various mul instructions. llvm-svn: 199026
This commit is contained in:
parent
ac114a3ce7
commit
485f00fe0f
|
@ -5596,9 +5596,18 @@ def : ARMInstAlias<"neg${s}${p} $Rd, $Rm",
|
|||
def : InstAlias<"nop${p}", (MOVr R0, R0, pred:$p, zero_reg)>,
|
||||
Requires<[IsARM, NoV6]>;
|
||||
|
||||
// UMULL/SMULL are available on all arches, but the instruction definitions
|
||||
// need difference constraints pre-v6. Use these aliases for the assembly
|
||||
// parsing on pre-v6.
|
||||
// MUL/UMLAL/SMLAL/UMULL/SMULL are available on all arches, but
|
||||
// the instruction definitions need difference constraints pre-v6.
|
||||
// Use these aliases for the assembly parsing on pre-v6.
|
||||
def : InstAlias<"mul${s}${p} $Rd, $Rn, $Rm",
|
||||
(MUL GPRnopc:$Rd, GPRnopc:$Rn, GPRnopc:$Rm, pred:$p, cc_out:$s)>,
|
||||
Requires<[IsARM, NoV6]>;
|
||||
def : InstAlias<"smlal${s}${p} $RdLo, $RdHi, $Rn, $Rm",
|
||||
(SMLAL GPR:$RdLo, GPR:$RdHi, GPR:$Rn, GPR:$Rm, pred:$p, cc_out:$s)>,
|
||||
Requires<[IsARM, NoV6]>;
|
||||
def : InstAlias<"umlal${s}${p} $RdLo, $RdHi, $Rn, $Rm",
|
||||
(UMLAL GPR:$RdLo, GPR:$RdHi, GPR:$Rn, GPR:$Rm, pred:$p, cc_out:$s)>,
|
||||
Requires<[IsARM, NoV6]>;
|
||||
def : InstAlias<"smull${s}${p} $RdLo, $RdHi, $Rn, $Rm",
|
||||
(SMULL GPR:$RdLo, GPR:$RdHi, GPR:$Rn, GPR:$Rm, pred:$p, cc_out:$s)>,
|
||||
Requires<[IsARM, NoV6]>;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
@ CHECK-OBJ: Flags [ (0x0)
|
||||
@ CHECK-OBJ: ]
|
||||
@ CHECK-OBJ: Address: 0x0
|
||||
@ CHECK-OBJ: Offset: 0x34
|
||||
@ CHECK-OBJ: Offset: 0x{{[0-9A-F]*}}
|
||||
@ CHECK-OBJ: Size: 23
|
||||
@ CHECK-OBJ: Link: 0
|
||||
@ CHECK-OBJ: Info: 0
|
||||
|
@ -28,3 +28,12 @@
|
|||
@ CHECK-OBJ: 0000: 41160000 00616561 62690001 0C000000 |A....aeabi......|
|
||||
@ CHECK-OBJ: 0010: 05340006 010801 |.4.....|
|
||||
@ CHECK-OBJ: )
|
||||
|
||||
|
||||
@ Check that multiplication is supported
|
||||
mul r4, r5, r6
|
||||
smull r4, r5, r6, r3
|
||||
umull r4, r5, r6, r3
|
||||
umlal r4, r5, r6, r3
|
||||
umaal r4, r5, r6, r3
|
||||
smlal r4, r5, r6, r3
|
||||
|
|
Loading…
Reference in New Issue