summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2013-06-20 16:24:17 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2013-06-20 16:24:17 +0000
commit151ad37fed2685f020bbed5b342ad7c0c35616bd (patch)
tree60b1a168d8491148277818368ac08233e4bd142d /test
parent027e94479c9e69eb3c3c5536fa9990d0b96e9510 (diff)
downloadllvm-151ad37fed2685f020bbed5b342ad7c0c35616bd.tar.gz
llvm-151ad37fed2685f020bbed5b342ad7c0c35616bd.tar.bz2
llvm-151ad37fed2685f020bbed5b342ad7c0c35616bd.tar.xz
[MC] Support @ variants with directional labels
The assembler parser common code supports recognizing symbol variants using the @ modifer. On PowerPC, it should also be possible to use (some of) those modifiers with directional labels, like "1f@l". This patch adds support for accepting symbol variants on directional labels as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184437 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/PowerPC/ppc64-fixup-apply.s8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/MC/PowerPC/ppc64-fixup-apply.s b/test/MC/PowerPC/ppc64-fixup-apply.s
index ca33a4455b..565a8e984d 100644
--- a/test/MC/PowerPC/ppc64-fixup-apply.s
+++ b/test/MC/PowerPC/ppc64-fixup-apply.s
@@ -28,6 +28,11 @@ addis 1, 1, target5+0x8000@ha
.set target5, 0x10000001
+1:
+addi 1, 1, 2f-1b@l
+addis 1, 1, 1b-2f@ha
+2:
+
.data
.quad v1
@@ -49,7 +54,7 @@ addis 1, 1, target5+0x8000@ha
# CHECK-NEXT: ]
# CHECK-NEXT: Address: 0x0
# CHECK-NEXT: Offset:
-# CHECK-NEXT: Size: 32
+# CHECK-NEXT: Size: 40
# CHECK-NEXT: Link: 0
# CHECK-NEXT: Info: 0
# CHECK-NEXT: AddressAlignment: 4
@@ -57,6 +62,7 @@ addis 1, 1, target5+0x8000@ha
# CHECK-NEXT: SectionData (
# CHECK-NEXT: 0000: 38211234 3C211234 38215678 3C211234
# CHECK-NEXT: 0010: 38214444 3C211111 38218001 3C211001
+# CHECK-NEXT: 0020: 38210008 3C210000
# CHECK-NEXT: )
# CHECK-NEXT: }