From 1bb9c8155ad075e5f78665470a1e7636d3b27d52 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Tue, 29 Jul 2014 23:31:27 +0000 Subject: [PATCH] mbar without argument is equivalent to mbar 0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214250 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCInstrInfo.td | 2 ++ test/MC/PowerPC/ppc64-encoding-bookII.s | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td index 1839853049a..0d91f43b6ac 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.td +++ b/lib/Target/PowerPC/PPCInstrInfo.td @@ -3123,6 +3123,8 @@ def : InstAlias<"wait", (WAIT 0)>; def : InstAlias<"waitrsv", (WAIT 1)>; def : InstAlias<"waitimpl", (WAIT 2)>; +def : InstAlias<"mbar", (MBAR 0)>, Requires<[IsBookE]>; + def : InstAlias<"crset $bx", (CREQV crbitrc:$bx, crbitrc:$bx, crbitrc:$bx)>; def : InstAlias<"crclr $bx", (CRXOR crbitrc:$bx, crbitrc:$bx, crbitrc:$bx)>; def : InstAlias<"crmove $bx, $by", (CROR crbitrc:$bx, crbitrc:$by, crbitrc:$by)>; diff --git a/test/MC/PowerPC/ppc64-encoding-bookII.s b/test/MC/PowerPC/ppc64-encoding-bookII.s index 9e109e1265c..16ae65b9ea6 100644 --- a/test/MC/PowerPC/ppc64-encoding-bookII.s +++ b/test/MC/PowerPC/ppc64-encoding-bookII.s @@ -56,6 +56,8 @@ # CHECK-BE: mbar 1 # encoding: [0x7c,0x20,0x06,0xac] # CHECK-LE: mbar 1 # encoding: [0xac,0x06,0x20,0x7c] mbar 1 +# CHECK-BE: mbar 0 + mbar # Extended mnemonics -- 2.34.1