summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2013-07-01 20:39:50 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2013-07-01 20:39:50 +0000
commitf7152a8596b116a3db3a22698123766be0764e42 (patch)
tree980ca1487153cecd4e024506f44a2d1d36857128
parent4747c71427ca3f52700ebf239ea7333b669f4318 (diff)
downloadbcm5719-llvm-f7152a8596b116a3db3a22698123766be0764e42.tar.gz
bcm5719-llvm-f7152a8596b116a3db3a22698123766be0764e42.zip
[PowerPC] Also add "msync" alias
This adds an alias for "msync" (which is used on Book E systems instead of "sync"). llvm-svn: 185375
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.td1
-rw-r--r--llvm/test/MC/PowerPC/ppc64-encoding-bookII.s2
2 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.td b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
index 5c2c59f21be..d535debc223 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
@@ -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)>;
diff --git a/llvm/test/MC/PowerPC/ppc64-encoding-bookII.s b/llvm/test/MC/PowerPC/ppc64-encoding-bookII.s
index b6c2e621d42..34ed77aa7f6 100644
--- a/llvm/test/MC/PowerPC/ppc64-encoding-bookII.s
+++ b/llvm/test/MC/PowerPC/ppc64-encoding-bookII.s
@@ -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]
OpenPOWER on IntegriCloud