DMB instalias needs the same predicate as the instruction.
authorJim Grosbach <grosbach@apple.com>
Thu, 14 Jul 2011 00:10:26 +0000 (00:10 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 14 Jul 2011 00:10:26 +0000 (00:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135112 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrInfo.td

index c4afe4043a56afd2c87ef6d2b5dd3af8b0843d29..a90e8ca52b5084a7fb292f826591f4926009d518 100644 (file)
@@ -3304,7 +3304,7 @@ def DMB : AInoP<(outs), (ins memb_opt:$opt), MiscFrm, NoItinerary,
 }
 }
 
-def : InstAlias<"dmb", (DMB 0xf)>;
+def : InstAlias<"dmb", (DMB 0xf)>, Requires<[IsARM, HasDB]>;
 
 def DSB : AInoP<(outs), (ins memb_opt:$opt), MiscFrm, NoItinerary,
                 "dsb", "\t$opt", []>,