[llvm] r185375 - [PowerPC] Also add "msync" alias
Ulrich Weigand
ulrich.weigand at de.ibm.com
Mon Jul 1 13:39:51 PDT 2013
Author: uweigand
Date: Mon Jul 1 15:39:50 2013
New Revision: 185375
URL: http://llvm.org/viewvc/llvm-project?rev=185375&view=rev
Log:
[PowerPC] Also add "msync" alias
This adds an alias for "msync" (which is used on Book E
systems instead of "sync").
Modified:
llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
llvm/trunk/test/MC/PowerPC/ppc64-encoding-bookII.s
Modified: llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td?rev=185375&r1=185374&r2=185375&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td Mon Jul 1 15:39:50 2013
@@ -2286,6 +2286,7 @@ class PPCAsmPseudo<string asm, dag iops>
def : InstAlias<"sc", (SC 0)>;
def : InstAlias<"sync", (SYNC 0)>;
+def : InstAlias<"msync", (SYNC 0)>;
def : InstAlias<"lwsync", (SYNC 1)>;
def : InstAlias<"ptesync", (SYNC 2)>;
Modified: llvm/trunk/test/MC/PowerPC/ppc64-encoding-bookII.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/PowerPC/ppc64-encoding-bookII.s?rev=185375&r1=185374&r2=185375&view=diff
==============================================================================
--- llvm/trunk/test/MC/PowerPC/ppc64-encoding-bookII.s (original)
+++ llvm/trunk/test/MC/PowerPC/ppc64-encoding-bookII.s Mon Jul 1 15:39:50 2013
@@ -57,6 +57,8 @@
# CHECK: sync 0 # encoding: [0x7c,0x00,0x04,0xac]
sync
+# CHECK: sync 0 # encoding: [0x7c,0x00,0x04,0xac]
+ msync
# CHECK: sync 1 # encoding: [0x7c,0x20,0x04,0xac]
lwsync
# CHECK: sync 2 # encoding: [0x7c,0x40,0x04,0xac]
More information about the llvm-commits
mailing list