diff options
author | Matheus Almeida <matheus.almeida@imgtec.com> | 2014-06-18 14:15:42 +0000 |
---|---|---|
committer | Matheus Almeida <matheus.almeida@imgtec.com> | 2014-06-18 14:15:42 +0000 |
commit | 7047ad9a087fc0a52118977b00184b749af5be7d (patch) | |
tree | 8b8e15bcd6f369f5d1c125b81bf6c25560a591bc /test | |
parent | c52345c0fce6ffdef4f4e96b27f3bff3e365834c (diff) | |
download | llvm-7047ad9a087fc0a52118977b00184b749af5be7d.tar.gz llvm-7047ad9a087fc0a52118977b00184b749af5be7d.tar.bz2 llvm-7047ad9a087fc0a52118977b00184b749af5be7d.tar.xz |
[mips] Access $at only if necessary.
Summary:
This patch doesn't really change the logic behind expandMemInst but it allows
us to assemble .S files that use .set noat with some macros. For example:
.set noat
lw $k0, offset($k1)
Can expand to:
lui $k0, %hi(offset)
addu $k0, $k0, $k1
lw $k0, %lo(offset)($k0)
with no need to access $at.
Reviewers: dsanders, vmedic
Reviewed By: dsanders, vmedic
Differential Revision: http://reviews.llvm.org/D4159
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211165 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/Mips/mips-expansions.s | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/MC/Mips/mips-expansions.s b/test/MC/Mips/mips-expansions.s index af80ccaa78..9925609ecd 100644 --- a/test/MC/Mips/mips-expansions.s +++ b/test/MC/Mips/mips-expansions.s @@ -44,7 +44,9 @@ la $a0, 20($a1) la $7,65538($8) + .set noat lw $t2, symbol($a0) + .set at sw $t2, symbol($t1) lw $t2, 655483($a0) |