summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp1
-rw-r--r--llvm/test/MC/PowerPC/ppc-separator.s10
2 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
index d30bf1a56e8..8ac461b96b8 100644
--- a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
+++ b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
@@ -24,6 +24,7 @@ PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(bool is64Bit, const Triple& T) {
}
IsLittleEndian = false;
+ SeparatorString = "@";
CommentString = ";";
ExceptionsType = ExceptionHandling::DwarfCFI;
diff --git a/llvm/test/MC/PowerPC/ppc-separator.s b/llvm/test/MC/PowerPC/ppc-separator.s
new file mode 100644
index 00000000000..d2291ec6088
--- /dev/null
+++ b/llvm/test/MC/PowerPC/ppc-separator.s
@@ -0,0 +1,10 @@
+; RUN: llvm-mc -triple powerpc-apple-darwin -show-encoding -o - %s | FileCheck %s
+; RUN: llvm-mc -triple powerpc64-apple-darwin -show-encoding -o - %s | FileCheck %s
+
+_label:
+ li r0, 0 @ li r1, 1
+
+; CHECK: _label:
+; CHECK: li r0, 0 ; encoding
+; CHECK: li r1, 1 ; encoding
+
OpenPOWER on IntegriCloud