diff options
| author | Toma Tabacu <toma.tabacu@imgtec.com> | 2015-06-17 11:46:37 +0000 |
|---|---|---|
| committer | Toma Tabacu <toma.tabacu@imgtec.com> | 2015-06-17 11:46:37 +0000 |
| commit | 6a1e0eb27d01731aca1e861ed968db0e072a2ad5 (patch) | |
| tree | e3a1be1cd868a0c392c6f0ec86eb5cbfb387f37f /llvm | |
| parent | da35573a587e4505a3f218e9cf1d40363aa1f38b (diff) | |
| download | bcm5719-llvm-6a1e0eb27d01731aca1e861ed968db0e072a2ad5.tar.gz bcm5719-llvm-6a1e0eb27d01731aca1e861ed968db0e072a2ad5.zip | |
[mips] [IAS] Add test for SW with relative label operands. NFC.
Reviewers: dsanders
Reviewed By: dsanders
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D10497
llvm-svn: 239899
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/test/MC/Mips/mips-expansions.s | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/MC/Mips/mips-expansions.s b/llvm/test/MC/Mips/mips-expansions.s index c32552ff4ae..193111f0537 100644 --- a/llvm/test/MC/Mips/mips-expansions.s +++ b/llvm/test/MC/Mips/mips-expansions.s @@ -60,6 +60,11 @@ # CHECK: # fixup A - offset: 0, value: ($tmp0)@ABS_HI, kind: fixup_Mips_HI16 # CHECK: lw $8, %lo($tmp0)($8) # encoding: [A,A,0x08,0x8d] # CHECK: # fixup A - offset: 0, value: ($tmp0)@ABS_LO, kind: fixup_Mips_LO16 + sw $8, 1f +# CHECK: lui $1, %hi($tmp0) # encoding: [A,A,0x01,0x3c] +# CHECK: # fixup A - offset: 0, value: ($tmp0)@ABS_HI, kind: fixup_Mips_HI16 +# CHECK: sw $8, %lo($tmp0)($1) # encoding: [A,A,0x28,0xac] +# CHECK: # fixup A - offset: 0, value: ($tmp0)@ABS_LO, kind: fixup_Mips_LO16 lw $10, 655483($4) # CHECK: lui $10, 10 # encoding: [0x0a,0x00,0x0a,0x3c] |

