summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorToma Tabacu <toma.tabacu@imgtec.com>2015-06-17 11:46:37 +0000
committerToma Tabacu <toma.tabacu@imgtec.com>2015-06-17 11:46:37 +0000
commitd3b8136e1dc003fe13de00af898dfb377bdce824 (patch)
tree3dcc00c7bf96051802321532a63206f5e623cbbc /test
parent8e18efe92593ee9a2cc6103a6094d7d15a0e85b4 (diff)
downloadllvm-d3b8136e1dc003fe13de00af898dfb377bdce824.tar.gz
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239899 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/Mips/mips-expansions.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/MC/Mips/mips-expansions.s b/test/MC/Mips/mips-expansions.s
index c32552ff4ae7..193111f05374 100644
--- a/test/MC/Mips/mips-expansions.s
+++ b/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]