1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

[PowerPC] Also add "msync" alias

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

llvm-svn: 185375
This commit is contained in:
Ulrich Weigand 2013-07-01 20:39:50 +00:00
parent 3787fb8dc0
commit 4261958c61
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<"sync", (SYNC 0)>;
def : InstAlias<"msync", (SYNC 0)>;
def : InstAlias<"lwsync", (SYNC 1)>;
def : InstAlias<"ptesync", (SYNC 2)>;

View File

@ -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]