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
This commit is contained in:
Jim Grosbach 2009-12-14 19:24:11 +00:00
parent 38e1074c53
commit a623f5a58d
2 changed files with 6 additions and 4 deletions

View File

@ -1579,7 +1579,7 @@ def Int_MemBarrierV7 : AInoP<(outs), (ins),
Pseudo, NoItinerary, Pseudo, NoItinerary,
"dmb", "", "dmb", "",
[(ARMMemBarrier)]>, [(ARMMemBarrier)]>,
Requires<[HasV7]> { Requires<[IsARM, HasV7]> {
let Inst{31-4} = 0xf57ff05; let Inst{31-4} = 0xf57ff05;
// FIXME: add support for options other than a full system DMB // FIXME: add support for options other than a full system DMB
let Inst{3-0} = 0b1111; let Inst{3-0} = 0b1111;
@ -1589,7 +1589,7 @@ def Int_SyncBarrierV7 : AInoP<(outs), (ins),
Pseudo, NoItinerary, Pseudo, NoItinerary,
"dsb", "", "dsb", "",
[(ARMSyncBarrier)]>, [(ARMSyncBarrier)]>,
Requires<[HasV7]> { Requires<[IsARM, HasV7]> {
let Inst{31-4} = 0xf57ff04; let Inst{31-4} = 0xf57ff04;
// FIXME: add support for options other than a full system DSB // FIXME: add support for options other than a full system DSB
let Inst{3-0} = 0b1111; let Inst{3-0} = 0b1111;

View File

@ -1073,14 +1073,16 @@ let hasSideEffects = 1 in {
def t2Int_MemBarrierV7 : AInoP<(outs), (ins), def t2Int_MemBarrierV7 : AInoP<(outs), (ins),
Pseudo, NoItinerary, Pseudo, NoItinerary,
"dmb", "", "dmb", "",
[(ARMMemBarrier)]> { [(ARMMemBarrier)]>,
Requires<[IsThumb2]> {
// FIXME: add support for options other than a full system DMB // FIXME: add support for options other than a full system DMB
} }
def t2Int_SyncBarrierV7 : AInoP<(outs), (ins), def t2Int_SyncBarrierV7 : AInoP<(outs), (ins),
Pseudo, NoItinerary, Pseudo, NoItinerary,
"dsb", "", "dsb", "",
[(ARMSyncBarrier)]> { [(ARMSyncBarrier)]>,
Requires<[IsThumb2]> {
// FIXME: add support for options other than a full system DSB // FIXME: add support for options other than a full system DSB
} }
} }