diff options
author | David Majnemer <david.majnemer@gmail.com> | 2013-09-25 10:47:21 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2013-09-25 10:47:21 +0000 |
commit | 3f22cc1df64a6dd6a3ecc5e7e261f15af083f806 (patch) | |
tree | 22cf719d9177fb9d16b1c632e98ba7ed7330f217 /test/MC/PowerPC/ppc64-operands.s | |
parent | 76f8ae87b4705f5c08c3995948223531715a2d58 (diff) | |
download | external_llvm-3f22cc1df64a6dd6a3ecc5e7e261f15af083f806.zip external_llvm-3f22cc1df64a6dd6a3ecc5e7e261f15af083f806.tar.gz external_llvm-3f22cc1df64a6dd6a3ecc5e7e261f15af083f806.tar.bz2 |
MC: Add support for treating $ as a reference to the PC
The binutils assembler supports a mode called DOLLAR_DOT which treats
the dollar sign token as a reference to the current program counter if
the dollar sign doesn't precede a constant or identifier.
This commit adds a new MCAsmInfo flag stating whether or not a given
target supports this interpretation of the dollar sign token; by
default, this flag is not enabled.
Further, enable this flag for PPC. The system assembler for AIX and
binutils both support using the dollar sign in this manner.
This fixes PR17353.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191368 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/PowerPC/ppc64-operands.s')
-rw-r--r-- | test/MC/PowerPC/ppc64-operands.s | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/MC/PowerPC/ppc64-operands.s b/test/MC/PowerPC/ppc64-operands.s index cb96fd4..fc1cbeb 100644 --- a/test/MC/PowerPC/ppc64-operands.s +++ b/test/MC/PowerPC/ppc64-operands.s @@ -108,3 +108,8 @@ # CHECK: beqa 0, 1024 # encoding: [0x41,0x82,0x04,0x02] beqa 1024 +# CHECK: # encoding: [0x42,0x9f,A,0bAAAAAA01] + bcl 20, 31, $+4 + +# CHECK: # encoding: [0x42,0x00,A,0bAAAAAA00] + bdnz $-8 |