Lines Matching refs:addReg
145 BuildMI(loop1MBB, DL, TII->get(LL), Scratch).addReg(Ptr).addImm(0); in expandAtomicCmpSwapSubword()
147 .addReg(Scratch) in expandAtomicCmpSwapSubword()
148 .addReg(Mask); in expandAtomicCmpSwapSubword()
150 .addReg(Scratch2).addReg(ShiftCmpVal).addMBB(sinkMBB); in expandAtomicCmpSwapSubword()
158 .addReg(Scratch, RegState::Kill) in expandAtomicCmpSwapSubword()
159 .addReg(Mask2); in expandAtomicCmpSwapSubword()
161 .addReg(Scratch, RegState::Kill) in expandAtomicCmpSwapSubword()
162 .addReg(ShiftNewVal); in expandAtomicCmpSwapSubword()
164 .addReg(Scratch, RegState::Kill) in expandAtomicCmpSwapSubword()
165 .addReg(Ptr) in expandAtomicCmpSwapSubword()
168 .addReg(Scratch, RegState::Kill) in expandAtomicCmpSwapSubword()
169 .addReg(ZERO) in expandAtomicCmpSwapSubword()
176 .addReg(Scratch2) in expandAtomicCmpSwapSubword()
177 .addReg(ShiftAmnt); in expandAtomicCmpSwapSubword()
179 BuildMI(sinkMBB, DL, TII->get(SEOp), Dest).addReg(Dest); in expandAtomicCmpSwapSubword()
184 .addReg(Dest, RegState::Kill) in expandAtomicCmpSwapSubword()
187 .addReg(Dest, RegState::Kill) in expandAtomicCmpSwapSubword()
278 BuildMI(loop1MBB, DL, TII->get(LL), Dest).addReg(Ptr).addImm(0); in expandAtomicCmpSwap()
280 .addReg(Dest, RegState::Kill).addReg(OldVal).addMBB(exitMBB); in expandAtomicCmpSwap()
286 BuildMI(loop2MBB, DL, TII->get(MOVE), Scratch).addReg(NewVal).addReg(ZERO); in expandAtomicCmpSwap()
288 .addReg(Scratch).addReg(Ptr).addImm(0); in expandAtomicCmpSwap()
290 .addReg(Scratch, RegState::Kill).addReg(ZERO).addMBB(loop1MBB); in expandAtomicCmpSwap()
437 BuildMI(loopMBB, DL, TII->get(LL), OldVal).addReg(Ptr).addImm(0); in expandAtomicBinOpSubword()
443 .addReg(OldVal) in expandAtomicBinOpSubword()
444 .addReg(Incr); in expandAtomicBinOpSubword()
446 .addReg(Mips::ZERO) in expandAtomicBinOpSubword()
447 .addReg(BinOpRes); in expandAtomicBinOpSubword()
449 .addReg(BinOpRes) in expandAtomicBinOpSubword()
450 .addReg(Mask); in expandAtomicBinOpSubword()
467 .addReg(OldVal) in expandAtomicBinOpSubword()
468 .addReg(Mask); in expandAtomicBinOpSubword()
469 BuildMI(loopMBB, DL, TII->get(Mips::AND), Incr).addReg(Incr).addReg(Mask); in expandAtomicBinOpSubword()
475 .addReg(OldVal) in expandAtomicBinOpSubword()
476 .addReg(Incr); in expandAtomicBinOpSubword()
486 .addReg(OldVal) in expandAtomicBinOpSubword()
487 .addReg(Scratch4); in expandAtomicBinOpSubword()
489 .addReg(Incr) in expandAtomicBinOpSubword()
490 .addReg(Scratch4); in expandAtomicBinOpSubword()
492 .addReg(BinOpRes) in expandAtomicBinOpSubword()
493 .addReg(Scratch4); in expandAtomicBinOpSubword()
500 .addReg(OldVal) in expandAtomicBinOpSubword()
501 .addReg(Mips::ZERO); in expandAtomicBinOpSubword()
503 .addReg(Incr) in expandAtomicBinOpSubword()
504 .addReg(Scratch4) in expandAtomicBinOpSubword()
505 .addReg(BinOpRes); in expandAtomicBinOpSubword()
510 .addReg(BinOpRes) in expandAtomicBinOpSubword()
511 .addReg(Mask); in expandAtomicBinOpSubword()
517 .addReg(OldVal) in expandAtomicBinOpSubword()
518 .addReg(Incr); in expandAtomicBinOpSubword()
520 .addReg(BinOpRes) in expandAtomicBinOpSubword()
521 .addReg(Mask); in expandAtomicBinOpSubword()
525 .addReg(Incr) in expandAtomicBinOpSubword()
526 .addReg(Mask); in expandAtomicBinOpSubword()
534 .addReg(OldVal).addReg(Mask2); in expandAtomicBinOpSubword()
536 .addReg(StoreVal).addReg(BinOpRes); in expandAtomicBinOpSubword()
538 .addReg(StoreVal).addReg(Ptr).addImm(0); in expandAtomicBinOpSubword()
540 .addReg(StoreVal).addReg(Mips::ZERO).addMBB(loopMBB); in expandAtomicBinOpSubword()
550 .addReg(OldVal).addReg(Mask); in expandAtomicBinOpSubword()
552 .addReg(Dest).addReg(ShiftAmnt); in expandAtomicBinOpSubword()
555 BuildMI(sinkMBB, DL, TII->get(SEOp), Dest).addReg(Dest); in expandAtomicBinOpSubword()
559 .addReg(Dest, RegState::Kill) in expandAtomicBinOpSubword()
562 .addReg(Dest, RegState::Kill) in expandAtomicBinOpSubword()
729 BuildMI(loopMBB, DL, TII->get(LL), OldVal).addReg(Ptr).addImm(0); in expandAtomicBinOp()
751 .addReg(OldVal) in expandAtomicBinOp()
752 .addReg(Incr); in expandAtomicBinOp()
762 .addReg(OldVal) in expandAtomicBinOp()
763 .addReg(Scratch2); in expandAtomicBinOp()
765 .addReg(Incr) in expandAtomicBinOp()
766 .addReg(Scratch2); in expandAtomicBinOp()
768 .addReg(Scratch) in expandAtomicBinOp()
769 .addReg(Scratch2); in expandAtomicBinOp()
776 .addReg(OldVal) in expandAtomicBinOp()
777 .addReg(ZERO); in expandAtomicBinOp()
779 .addReg(Incr) in expandAtomicBinOp()
780 .addReg(Scratch2) in expandAtomicBinOp()
781 .addReg(Scratch); in expandAtomicBinOp()
785 BuildMI(loopMBB, DL, TII->get(Opcode), Scratch).addReg(OldVal).addReg(Incr); in expandAtomicBinOp()
789 BuildMI(loopMBB, DL, TII->get(AND), Scratch).addReg(OldVal).addReg(Incr); in expandAtomicBinOp()
790 BuildMI(loopMBB, DL, TII->get(NOR), Scratch).addReg(ZERO).addReg(Scratch); in expandAtomicBinOp()
794 BuildMI(loopMBB, DL, TII->get(OR), Scratch).addReg(Incr).addReg(ZERO); in expandAtomicBinOp()
798 .addReg(Scratch) in expandAtomicBinOp()
799 .addReg(Ptr) in expandAtomicBinOp()
802 .addReg(Scratch) in expandAtomicBinOp()
803 .addReg(ZERO) in expandAtomicBinOp()