llvm.org GIT mirror llvm / 32cf306
Add missing mul aliases for armv4 support. Add checks that armv4 can assemble the various mul instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199026 91177308-0d34-0410-b5e6-96231b3b80d8 Joerg Sonnenberger 6 years ago
2 changed file(s) with 22 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
55955595 def : InstAlias<"nop${p}", (MOVr R0, R0, pred:$p, zero_reg)>,
55965596 Requires<[IsARM, NoV6]>;
55975597
5598 // UMULL/SMULL are available on all arches, but the instruction definitions
5599 // need difference constraints pre-v6. Use these aliases for the assembly
5600 // parsing on pre-v6.
5598 // MUL/UMLAL/SMLAL/UMULL/SMULL are available on all arches, but
5599 // the instruction definitions need difference constraints pre-v6.
5600 // Use these aliases for the assembly parsing on pre-v6.
5601 def : InstAlias<"mul${s}${p} $Rd, $Rn, $Rm",
5602 (MUL GPRnopc:$Rd, GPRnopc:$Rn, GPRnopc:$Rm, pred:$p, cc_out:$s)>,
5603 Requires<[IsARM, NoV6]>;
5604 def : InstAlias<"smlal${s}${p} $RdLo, $RdHi, $Rn, $Rm",
5605 (SMLAL GPR:$RdLo, GPR:$RdHi, GPR:$Rn, GPR:$Rm, pred:$p, cc_out:$s)>,
5606 Requires<[IsARM, NoV6]>;
5607 def : InstAlias<"umlal${s}${p} $RdLo, $RdHi, $Rn, $Rm",
5608 (UMLAL GPR:$RdLo, GPR:$RdHi, GPR:$Rn, GPR:$Rm, pred:$p, cc_out:$s)>,
5609 Requires<[IsARM, NoV6]>;
56015610 def : InstAlias<"smull${s}${p} $RdLo, $RdHi, $Rn, $Rm",
56025611 (SMULL GPR:$RdLo, GPR:$RdHi, GPR:$Rn, GPR:$Rm, pred:$p, cc_out:$s)>,
56035612 Requires<[IsARM, NoV6]>;
1717 @ CHECK-OBJ: Flags [ (0x0)
1818 @ CHECK-OBJ: ]
1919 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
20 @ CHECK-OBJ: Offset: 0x{{[0-9A-F]*}}
2121 @ CHECK-OBJ: Size: 23
2222 @ CHECK-OBJ: Link: 0
2323 @ CHECK-OBJ: Info: 0
2727 @ CHECK-OBJ: 0000: 41160000 00616561 62690001 0C000000 |A....aeabi......|
2828 @ CHECK-OBJ: 0010: 05340006 010801 |.4.....|
2929 @ CHECK-OBJ: )
30
31
32 @ Check that multiplication is supported
33 mul r4, r5, r6
34 smull r4, r5, r6, r3
35 umull r4, r5, r6, r3
36 umlal r4, r5, r6, r3
37 umaal r4, r5, r6, r3
38 smlal r4, r5, r6, r3