diff options
author | Daniel Sanders <daniel.sanders@imgtec.com> | 2016-04-29 13:43:45 +0000 |
---|---|---|
committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2016-04-29 13:43:45 +0000 |
commit | fba875f90287e2c1037bb8cf0acffafba87cf8c7 (patch) | |
tree | f658e09a7950631d72e52d709ef9fec0cf8986e7 /llvm/test | |
parent | a736b37a258f51ccc99e0544339ddcdb97705ff3 (diff) | |
download | bcm5719-llvm-fba875f90287e2c1037bb8cf0acffafba87cf8c7.tar.gz bcm5719-llvm-fba875f90287e2c1037bb8cf0acffafba87cf8c7.zip |
[mips][ias] Split expandMemInst between MipsAsmParser and MipsTargetStreamer. Almost NFC.
Summary:
The portion in MipsAsmParser is responsible for figuring out which expansion to
use, while the portion in MipsTargetStreamer is responsible for emitting it.
This allows us to remove the call to isIntegratedAssemblerRequired() which is
currently ensuring the effect of .cprestore only occurs when writing objects.
The small functional change is that the memory offsets are now correctly
printed as signed values.
Reviewers: sdardis
Subscribers: dsanders, sdardis, llvm-commits
Differential Revision: http://reviews.llvm.org/D19714
llvm-svn: 268042
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/MC/Mips/micromips-expansions.s | 2 | ||||
-rw-r--r-- | llvm/test/MC/Mips/mips-expansions.s | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/MC/Mips/micromips-expansions.s b/llvm/test/MC/Mips/micromips-expansions.s index 48c73f34e7e..128662ccece 100644 --- a/llvm/test/MC/Mips/micromips-expansions.s +++ b/llvm/test/MC/Mips/micromips-expansions.s @@ -39,7 +39,7 @@ # CHECK: lw $10, 123($10) # encoding: [0x4a,0xfd,0x7b,0x00] # CHECK: lui $1, 2 # encoding: [0xa1,0x41,0x02,0x00] # CHECK: addu $1, $1, $9 # encoding: [0x21,0x01,0x50,0x09] -# CHECK: sw $10, 57920($1) # encoding: [0x41,0xf9,0x40,0xe2] +# CHECK: sw $10, -7616($1) # encoding: [0x41,0xf9,0x40,0xe2] li $5,123 li $6,-2345 diff --git a/llvm/test/MC/Mips/mips-expansions.s b/llvm/test/MC/Mips/mips-expansions.s index 855aefbba5a..dd8fe2d6089 100644 --- a/llvm/test/MC/Mips/mips-expansions.s +++ b/llvm/test/MC/Mips/mips-expansions.s @@ -47,7 +47,7 @@ sw $10, 123456($9) # CHECK-LE: lui $1, 2 # encoding: [0x02,0x00,0x01,0x3c] # CHECK-LE: addu $1, $1, $9 # encoding: [0x21,0x08,0x29,0x00] -# CHECK-LE: sw $10, 57920($1) # encoding: [0x40,0xe2,0x2a,0xac] +# CHECK-LE: sw $10, -7616($1) # encoding: [0x40,0xe2,0x2a,0xac] lw $8, symbol # CHECK-LE: lui $8, %hi(symbol) # encoding: [A,A,0x08,0x3c] |