summaryrefslogtreecommitdiff
path: root/test/MC
diff options
context:
space:
mode:
authorZoran Jovanovic <zoran.jovanovic@imgtec.com>2016-05-19 12:20:40 +0000
committerZoran Jovanovic <zoran.jovanovic@imgtec.com>2016-05-19 12:20:40 +0000
commit785d7f7fbfbeee09bdb65f19945a4b43d7ce502c (patch)
tree807392fab46549296fd0bc0d7e0a00cb9af7709f /test/MC
parente4c02144d109619aca733cb04c208977cdccd625 (diff)
ps][microMIPS] Add R_MICROMIPS_PC21_S1 relocation
Differential Revision: http://reviews.llvm.org/D15526 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270048 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/Mips/micromips32r6/relocations.s10
-rw-r--r--test/MC/Mips/micromips64r6/relocations.s10
2 files changed, 20 insertions, 0 deletions
diff --git a/test/MC/Mips/micromips32r6/relocations.s b/test/MC/Mips/micromips32r6/relocations.s
index 0fb1ef882b7..959cdbfeac9 100644
--- a/test/MC/Mips/micromips32r6/relocations.s
+++ b/test/MC/Mips/micromips32r6/relocations.s
@@ -17,6 +17,12 @@
# 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-FIXUP: beqzc $3, bar # encoding: [0x80,0b011AAAAA,A,A]
+# CHECK-FIXUP: # fixup A - offset: 0,
+# CHECK-FIXUP: value: bar-4, kind: fixup_MICROMIPS_PC21_S1
+# CHECK-FIXUP: bnezc $3, bar # encoding: [0xa0,0b011AAAAA,A,A]
+# CHECK-FIXUP: # fixup A - offset: 0,
+# CHECK-FIXUP: value: bar-4, kind: fixup_MICROMIPS_PC21_S1
#------------------------------------------------------------------------------
# Check that the appropriate relocations were created.
#------------------------------------------------------------------------------
@@ -25,9 +31,13 @@
# CHECK-ELF: 0x4 R_MICROMIPS_PC26_S1 bar 0x0
# CHECK-ELF: 0x8 R_MICROMIPS_PC19_S2 bar 0x0
# CHECK-ELF: 0xC R_MICROMIPS_PC19_S2 bar 0x0
+# CHECK-ELF: 0x10 R_MICROMIPS_PC21_S1 bar 0x0
+# CHECK-ELF: 0x14 R_MICROMIPS_PC21_S1 bar 0x0
# CHECK-ELF: ]
balc bar
bc bar
addiupc $2,bar
lwpc $2,bar
+ beqzc $3, bar
+ bnezc $3, bar
diff --git a/test/MC/Mips/micromips64r6/relocations.s b/test/MC/Mips/micromips64r6/relocations.s
index fc1ffbfbeed..18fa26b4e94 100644
--- a/test/MC/Mips/micromips64r6/relocations.s
+++ b/test/MC/Mips/micromips64r6/relocations.s
@@ -20,6 +20,12 @@
# CHECK-FIXUP: ldpc $2, bar # encoding: [0x78,0b010110AA,A,A]
# CHECK-FIXUP: # fixup A - offset: 0,
# CHECK-FIXUP: value: bar, kind: fixup_MICROMIPS_PC18_S3
+# CHECK-FIXUP: beqzc $3, bar # encoding: [0x80,0b011AAAAA,A,A]
+# CHECK-FIXUP: # fixup A - offset: 0,
+# CHECK-FIXUP: value: bar-4, kind: fixup_MICROMIPS_PC21_S1
+# CHECK-FIXUP: bnezc $3, bar # encoding: [0xa0,0b011AAAAA,A,A]
+# CHECK-FIXUP: # fixup A - offset: 0,
+# CHECK-FIXUP: value: bar-4, kind: fixup_MICROMIPS_PC21_S1
#------------------------------------------------------------------------------
# Check that the appropriate relocations were created.
#------------------------------------------------------------------------------
@@ -29,6 +35,8 @@
# CHECK-ELF: 0x8 R_MICROMIPS_PC19_S2 bar 0x0
# CHECK-ELF: 0xC R_MICROMIPS_PC19_S2 bar 0x0
# CHECK-ELF: 0x10 R_MICROMIPS_PC18_S3 bar 0x0
+# CHECK-ELF: 0x14 R_MICROMIPS_PC21_S1 bar 0x0
+# CHECK-ELF: 0x18 R_MICROMIPS_PC21_S1 bar 0x0
# CHECK-ELF: ]
balc bar
@@ -36,3 +44,5 @@
addiupc $2,bar
lwpc $2,bar
ldpc $2, bar
+ beqzc $3, bar
+ bnezc $3, bar