diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-07-01 20:39:50 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-07-01 20:39:50 +0000 |
commit | 3bd2b92267df204c5633329611cc7ae3e1c11834 (patch) | |
tree | 0a7aa5b104ed3c6307414b8b22c54a27d4943271 | |
parent | db8e0bbedb46c9f781f8a32728b1019f34089ed8 (diff) | |
download | llvm-3bd2b92267df204c5633329611cc7ae3e1c11834.tar.gz llvm-3bd2b92267df204c5633329611cc7ae3e1c11834.tar.bz2 llvm-3bd2b92267df204c5633329611cc7ae3e1c11834.tar.xz |
[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
-rw-r--r-- | lib/Target/PowerPC/PPCInstrInfo.td | 1 | ||||
-rw-r--r-- | test/MC/PowerPC/ppc64-encoding-bookII.s | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td index 5c2c59f21b..d535debc22 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.td +++ b/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/test/MC/PowerPC/ppc64-encoding-bookII.s b/test/MC/PowerPC/ppc64-encoding-bookII.s index b6c2e621d4..34ed77aa7f 100644 --- a/test/MC/PowerPC/ppc64-encoding-bookII.s +++ b/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] |