summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Mips
diff options
context:
space:
mode:
authorZoran Jovanovic <zoran.jovanovic@imgtec.com>2016-04-21 14:09:35 +0000
committerZoran Jovanovic <zoran.jovanovic@imgtec.com>2016-04-21 14:09:35 +0000
commit6764fa78407e3b01e85e4cfd3a10792ae73d3b63 (patch)
treea5b208ede53e273bfd7551eb203f39481de44901 /llvm/test/MC/Mips
parentaf83e40dee4270cf5a3b34229b981e6d7a5d07da (diff)
downloadbcm5719-llvm-6764fa78407e3b01e85e4cfd3a10792ae73d3b63.tar.gz
bcm5719-llvm-6764fa78407e3b01e85e4cfd3a10792ae73d3b63.zip
[mips][microMIPS] Add R_MICROMIPS_PC19_S2 relocation
Differential Revision: http://reviews.llvm.org/D14915 llvm-svn: 266988
Diffstat (limited to 'llvm/test/MC/Mips')
-rw-r--r--llvm/test/MC/Mips/micromips32r6/relocations.s9
-rw-r--r--llvm/test/MC/Mips/micromips64r6/relocations.s8
2 files changed, 16 insertions, 1 deletions
diff --git a/llvm/test/MC/Mips/micromips32r6/relocations.s b/llvm/test/MC/Mips/micromips32r6/relocations.s
index 14baa6b37b6..98123ef8f9e 100644
--- a/llvm/test/MC/Mips/micromips32r6/relocations.s
+++ b/llvm/test/MC/Mips/micromips32r6/relocations.s
@@ -11,6 +11,12 @@
# CHECK-FIXUP: bc bar # encoding: [0b100101AA,A,A,A]
# CHECK-FIXUP: # fixup A - offset: 0,
# CHECK-FIXUP: value: bar-4, kind: fixup_MICROMIPS_PC26_S1
+# CHECK-FIXUP: addiupc $2, bar # encoding: [0x78,0b01000AAA,A,A]
+# CHECK-FIXUP: # fixup A - offset: 0,
+# CHECK-FIXUP: value: bar, kind: fixup_MICROMIPS_PC19_S2
+# CHECK-FIXUP: lwpc $2, bar # encoding: [0x78,0b01001AAA,A,A]
+# CHECK-FIXUP: # fixup A - offset: 0,
+# CHECK-FIXUP: value: bar, kind: fixup_MICROMIPS_PC19_S2
#------------------------------------------------------------------------------
# Check that the appropriate relocations were created.
#------------------------------------------------------------------------------
@@ -21,4 +27,5 @@
balc bar
bc bar
-
+ addiupc $2,bar
+ lwpc $2,bar
diff --git a/llvm/test/MC/Mips/micromips64r6/relocations.s b/llvm/test/MC/Mips/micromips64r6/relocations.s
index b9e72436cfa..0963e830d9b 100644
--- a/llvm/test/MC/Mips/micromips64r6/relocations.s
+++ b/llvm/test/MC/Mips/micromips64r6/relocations.s
@@ -11,6 +11,12 @@
# CHECK-FIXUP: bc bar # encoding: [0b100101AA,A,A,A]
# CHECK-FIXUP: # fixup A - offset: 0,
# CHECK-FIXUP: value: bar-4, kind: fixup_MICROMIPS_PC26_S1
+# CHECK-FIXUP: addiupc $2, bar # encoding: [0x78,0b01000AAA,A,A]
+# CHECK-FIXUP: # fixup A - offset: 0,
+# CHECK-FIXUP: value: bar, kind: fixup_MICROMIPS_PC19_S2
+# CHECK-FIXUP: lwpc $2, bar # encoding: [0x78,0b01001AAA,A,A]
+# CHECK-FIXUP: # fixup A - offset: 0,
+# CHECK-FIXUP: value: bar, kind: fixup_MICROMIPS_PC19_S2
#------------------------------------------------------------------------------
# Check that the appropriate relocations were created.
#------------------------------------------------------------------------------
@@ -21,3 +27,5 @@
balc bar
bc bar
+ addiupc $2,bar
+ lwpc $2,bar
OpenPOWER on IntegriCloud