diff options
author | Jim Grosbach <grosbach@apple.com> | 2009-12-14 19:24:11 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2009-12-14 19:24:11 +0000 |
commit | a623f5a58dd7768b0cf4dbb61b1fffa8b4d07cca (patch) | |
tree | 1ae442df2796e455733de901a2f3b16eea179361 /lib | |
parent | 38e1074c53e0ff3241c2ef541b2544440e1c8b66 (diff) |
correct selection requirements for thumb2 vs. arm versions of the barrier intrinsics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91313 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/ARM/ARMInstrInfo.td | 4 | ||||
-rw-r--r-- | lib/Target/ARM/ARMInstrThumb2.td | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/Target/ARM/ARMInstrInfo.td b/lib/Target/ARM/ARMInstrInfo.td index 814f50656f..8f947febb6 100644 --- a/lib/Target/ARM/ARMInstrInfo.td +++ b/lib/Target/ARM/ARMInstrInfo.td @@ -1579,7 +1579,7 @@ def Int_MemBarrierV7 : AInoP<(outs), (ins), Pseudo, NoItinerary, "dmb", "", [(ARMMemBarrier)]>, - Requires<[HasV7]> { + Requires<[IsARM, HasV7]> { let Inst{31-4} = 0xf57ff05; // FIXME: add support for options other than a full system DMB let Inst{3-0} = 0b1111; @@ -1589,7 +1589,7 @@ def Int_SyncBarrierV7 : AInoP<(outs), (ins), Pseudo, NoItinerary, "dsb", "", [(ARMSyncBarrier)]>, - Requires<[HasV7]> { + Requires<[IsARM, HasV7]> { let Inst{31-4} = 0xf57ff04; // FIXME: add support for options other than a full system DSB let Inst{3-0} = 0b1111; diff --git a/lib/Target/ARM/ARMInstrThumb2.td b/lib/Target/ARM/ARMInstrThumb2.td index 0f2024f4fa..a2aa1c03e9 100644 --- a/lib/Target/ARM/ARMInstrThumb2.td +++ b/lib/Target/ARM/ARMInstrThumb2.td @@ -1073,14 +1073,16 @@ let hasSideEffects = 1 in { def t2Int_MemBarrierV7 : AInoP<(outs), (ins), Pseudo, NoItinerary, "dmb", "", - [(ARMMemBarrier)]> { + [(ARMMemBarrier)]>, + Requires<[IsThumb2]> { // FIXME: add support for options other than a full system DMB } def t2Int_SyncBarrierV7 : AInoP<(outs), (ins), Pseudo, NoItinerary, "dsb", "", - [(ARMSyncBarrier)]> { + [(ARMSyncBarrier)]>, + Requires<[IsThumb2]> { // FIXME: add support for options other than a full system DSB } } |