Skip to content

Commit d4284c0

Browse files
committed
PPC patterns fixed.
1 parent 976aa62 commit d4284c0

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

llvm/lib/Target/PowerPC/PPCInstrInfo.td

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5035,12 +5035,12 @@ defm : TrapExtendedMnemonic<"lng", 6>;
50355035
defm : TrapExtendedMnemonic<"u", 31>;
50365036

50375037
// Atomic loads
5038-
def : Pat<(iAny (atomic_load_8 DForm:$src)), (LBZ memri:$src)>;
5039-
def : Pat<(iAny (atomic_load_16 DForm:$src)), (LHZ memri:$src)>;
5040-
def : Pat<(iAny (atomic_load_32 DForm:$src)), (LWZ memri:$src)>;
5041-
def : Pat<(iAny (atomic_load_8 XForm:$src)), (LBZX memrr:$src)>;
5042-
def : Pat<(iAny (atomic_load_16 XForm:$src)), (LHZX memrr:$src)>;
5043-
def : Pat<(iAny (atomic_load_32 XForm:$src)), (LWZX memrr:$src)>;
5038+
def : Pat<(i32 (atomic_load_8 DForm:$src)), (LBZ memri:$src)>;
5039+
def : Pat<(i32 (atomic_load_16 DForm:$src)), (LHZ memri:$src)>;
5040+
def : Pat<(i32 (atomic_load_32 DForm:$src)), (LWZ memri:$src)>;
5041+
def : Pat<(i32 (atomic_load_8 XForm:$src)), (LBZX memrr:$src)>;
5042+
def : Pat<(i32 (atomic_load_16 XForm:$src)), (LHZX memrr:$src)>;
5043+
def : Pat<(i32 (atomic_load_32 XForm:$src)), (LWZX memrr:$src)>;
50445044

50455045
// Atomic stores
50465046
def : Pat<(atomic_store_8 i32:$val, DForm:$ptr), (STB gprc:$val, memri:$ptr)>;

llvm/lib/Target/PowerPC/PPCInstrP10.td

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,13 +1289,13 @@ let Predicates = [PCRelativeMemops] in {
12891289
(PSTXVpc $XS, $ga, 0)>;
12901290

12911291
// Atomic Load
1292-
def : Pat<(iAny (atomic_load_8 (PPCmatpcreladdr PCRelForm:$ga))),
1292+
def : Pat<(i32 (atomic_load_8 (PPCmatpcreladdr PCRelForm:$ga))),
12931293
(PLBZpc $ga, 0)>;
1294-
def : Pat<(iAny (atomic_load_16 (PPCmatpcreladdr PCRelForm:$ga))),
1294+
def : Pat<(i32 (atomic_load_16 (PPCmatpcreladdr PCRelForm:$ga))),
12951295
(PLHZpc $ga, 0)>;
1296-
def : Pat<(iAny (atomic_load_32 (PPCmatpcreladdr PCRelForm:$ga))),
1296+
def : Pat<(i32 (atomic_load_32 (PPCmatpcreladdr PCRelForm:$ga))),
12971297
(PLWZpc $ga, 0)>;
1298-
def : Pat<(iAny (atomic_load_64 (PPCmatpcreladdr PCRelForm:$ga))),
1298+
def : Pat<(i64 (atomic_load_64 (PPCmatpcreladdr PCRelForm:$ga))),
12991299
(PLDpc $ga, 0)>;
13001300

13011301
// Atomic Store
@@ -2347,10 +2347,10 @@ let Predicates = [PrefixInstrs] in {
23472347
def : Pat<(store f64:$FRS, PDForm:$dst), (PSTFD $FRS, memri34:$dst)>;
23482348

23492349
// Atomic Load
2350-
def : Pat<(iAny (atomic_load_8 PDForm:$src)), (PLBZ memri34:$src)>;
2351-
def : Pat<(iAny (atomic_load_16 PDForm:$src)), (PLHZ memri34:$src)>;
2352-
def : Pat<(iAny (atomic_load_32 PDForm:$src)), (PLWZ memri34:$src)>;
2353-
def : Pat<(iAny (atomic_load_64 PDForm:$src)), (PLD memri34:$src)>;
2350+
def : Pat<(i32 (atomic_load_8 PDForm:$src)), (PLBZ memri34:$src)>;
2351+
def : Pat<(i32 (atomic_load_16 PDForm:$src)), (PLHZ memri34:$src)>;
2352+
def : Pat<(i32 (atomic_load_32 PDForm:$src)), (PLWZ memri34:$src)>;
2353+
def : Pat<(i64 (atomic_load_64 PDForm:$src)), (PLD memri34:$src)>;
23542354

23552355
// Atomic Store
23562356
def : Pat<(atomic_store_8 i32:$RS, PDForm:$dst), (PSTB $RS, memri34:$dst)>;

0 commit comments

Comments
 (0)