[PowerPC] Also add "msync" alias

This adds an alias for "msync" (which is used on Book E
systems instead of "sync").



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185375 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ulrich Weigand 2013-07-01 20:39:50 +00:00
parent db8e0bbedb
commit 3bd2b92267
2 changed files with 3 additions and 0 deletions

View File

@ -2286,6 +2286,7 @@ class PPCAsmPseudo<string asm, dag iops>
def : InstAlias<"sc", (SC 0)>; def : InstAlias<"sc", (SC 0)>;
def : InstAlias<"sync", (SYNC 0)>; def : InstAlias<"sync", (SYNC 0)>;
def : InstAlias<"msync", (SYNC 0)>;
def : InstAlias<"lwsync", (SYNC 1)>; def : InstAlias<"lwsync", (SYNC 1)>;
def : InstAlias<"ptesync", (SYNC 2)>; def : InstAlias<"ptesync", (SYNC 2)>;

View File

@ -57,6 +57,8 @@
# CHECK: sync 0 # encoding: [0x7c,0x00,0x04,0xac] # CHECK: sync 0 # encoding: [0x7c,0x00,0x04,0xac]
sync sync
# CHECK: sync 0 # encoding: [0x7c,0x00,0x04,0xac]
msync
# CHECK: sync 1 # encoding: [0x7c,0x20,0x04,0xac] # CHECK: sync 1 # encoding: [0x7c,0x20,0x04,0xac]
lwsync lwsync
# CHECK: sync 2 # encoding: [0x7c,0x40,0x04,0xac] # CHECK: sync 2 # encoding: [0x7c,0x40,0x04,0xac]