llvm.org GIT mirror llvm / 3aea7cb
PPC pre-increment load instructions do not have side effects A few were missed in r178972. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178973 91177308-0d34-0410-b5e6-96231b3b80d8 Hal Finkel 7 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
548548 PPC970_DGroup_Cracked;
549549
550550 // Update forms.
551 let mayLoad = 1 in {
551 let mayLoad = 1, neverHasSideEffects = 1 in {
552552 def LHAU8 : DForm_1<43, (outs G8RC:$rD, ptr_rc_nor0:$ea_result),
553553 (ins memri:$addr),
554554 "lhau $rD, $addr", LdStLHAU,
665665 "ldbrx $rD, $src", LdStLoad,
666666 [(set i64:$rD, (PPClbrx xoaddr:$src, i64))]>, isPPC64;
667667
668 let mayLoad = 1, neverHasSideEffects = 1 in
668 let mayLoad = 1, neverHasSideEffects = 1 in {
669669 def LDU : DSForm_1<58, 1, (outs G8RC:$rD, ptr_rc_nor0:$ea_result), (ins memrix:$addr),
670670 "ldu $rD, $addr", LdStLDU,
671671 []>, RegConstraint<"$addr.reg = $ea_result">, isPPC64,
676676 "ldux $rD, $addr", LdStLDU,
677677 []>, RegConstraint<"$addr.ptrreg = $ea_result">,
678678 NoEncode<"$ea_result">, isPPC64;
679 }
679680 }
680681
681682 def : Pat<(PPCload ixaddr:$src),