diff options
author | Jack Carter <jack.carter@imgtec.com> | 2013-05-16 20:24:27 +0000 |
---|---|---|
committer | Jack Carter <jack.carter@imgtec.com> | 2013-05-16 20:24:27 +0000 |
commit | e351865b65e92bea8ceeb32ad757d783d0ecea0f (patch) | |
tree | 79f57d33ed5bf0dc676bedb29f2c86915874d9eb /test/MC/Mips/mips64-alu-instructions.s | |
parent | d761004bfd61c96ad650b82ab262e220530ea6d9 (diff) | |
download | llvm-e351865b65e92bea8ceeb32ad757d783d0ecea0f.tar.gz llvm-e351865b65e92bea8ceeb32ad757d783d0ecea0f.tar.bz2 llvm-e351865b65e92bea8ceeb32ad757d783d0ecea0f.tar.xz |
Mips assembler: Add TwoOperandConstraint definitions
This patch removes alias definition for addiu $rs,$imm
and instead uses the TwoOperandAliasConstraint field in
the ArithLogicI instruction class.
This way all instructions that inherit ArithLogicI class
have the same macro defined.
The usage examples are added to test files.
Patch by Vladimir Medic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182048 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Mips/mips64-alu-instructions.s')
-rw-r--r-- | test/MC/Mips/mips64-alu-instructions.s | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/MC/Mips/mips64-alu-instructions.s b/test/MC/Mips/mips64-alu-instructions.s index db6c972b3b..c33ba70e2c 100644 --- a/test/MC/Mips/mips64-alu-instructions.s +++ b/test/MC/Mips/mips64-alu-instructions.s @@ -69,7 +69,9 @@ # CHECK: daddi $9, $6, 17767 # encoding: [0x67,0x45,0xc9,0x60] # CHECK: daddiu $9, $6, -15001 # encoding: [0x67,0xc5,0xc9,0x64] # CHECK: daddi $9, $6, 17767 # encoding: [0x67,0x45,0xc9,0x60] +# CHECK: daddi $9, $9, 17767 # encoding: [0x67,0x45,0x29,0x61] # CHECK: daddiu $9, $6, -15001 # encoding: [0x67,0xc5,0xc9,0x64] +# CHECK: daddiu $9, $9, -15001 # encoding: [0x67,0xc5,0x29,0x65] # CHECK: daddu $9, $6, $7 # encoding: [0x2d,0x48,0xc7,0x00] # CHECK: madd $6, $7 # encoding: [0x00,0x00,0xc7,0x70] # CHECK: maddu $6, $7 # encoding: [0x01,0x00,0xc7,0x70] @@ -88,7 +90,9 @@ dadd $9,$6,17767 daddu $9,$6,-15001 daddi $9,$6,17767 + daddi $9,17767 daddiu $9,$6,-15001 + daddiu $9,-15001 daddu $9,$6,$7 madd $6,$7 maddu $6,$7 |