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()
454 BuildMI(loopMBB, DL, TII->get(LL), OldVal).addReg(Ptr).addImm(0); in expandAtomicBinOpSubword()
460 .addReg(OldVal) in expandAtomicBinOpSubword()
461 .addReg(Incr); in expandAtomicBinOpSubword()
463 .addReg(Mips::ZERO) in expandAtomicBinOpSubword()
464 .addReg(BinOpRes); in expandAtomicBinOpSubword()
466 .addReg(BinOpRes) in expandAtomicBinOpSubword()
467 .addReg(Mask); in expandAtomicBinOpSubword()
480 .addReg(OldVal) in expandAtomicBinOpSubword()
481 .addReg(ShiftAmnt); in expandAtomicBinOpSubword()
485 .addReg(StoreVal) in expandAtomicBinOpSubword()
488 BuildMI(loopMBB, DL, TII->get(SEOp), StoreVal).addReg(StoreVal); in expandAtomicBinOpSubword()
493 .addReg(StoreVal, RegState::Kill) in expandAtomicBinOpSubword()
496 .addReg(StoreVal, RegState::Kill) in expandAtomicBinOpSubword()
500 .addReg(Mips::ZERO) in expandAtomicBinOpSubword()
501 .addReg(StoreVal); in expandAtomicBinOpSubword()
504 .addReg(StoreVal) in expandAtomicBinOpSubword()
505 .addReg(ShiftAmnt); in expandAtomicBinOpSubword()
510 .addReg(StoreVal) in expandAtomicBinOpSubword()
511 .addReg(Incr); in expandAtomicBinOpSubword()
521 .addReg(StoreVal) in expandAtomicBinOpSubword()
522 .addReg(Scratch4); in expandAtomicBinOpSubword()
524 .addReg(Incr) in expandAtomicBinOpSubword()
525 .addReg(Scratch4); in expandAtomicBinOpSubword()
527 .addReg(BinOpRes) in expandAtomicBinOpSubword()
528 .addReg(Scratch4); in expandAtomicBinOpSubword()
535 .addReg(StoreVal) in expandAtomicBinOpSubword()
536 .addReg(Mips::ZERO); in expandAtomicBinOpSubword()
538 .addReg(Incr) in expandAtomicBinOpSubword()
539 .addReg(Scratch4) in expandAtomicBinOpSubword()
540 .addReg(BinOpRes); in expandAtomicBinOpSubword()
545 .addReg(BinOpRes) in expandAtomicBinOpSubword()
546 .addReg(Mask); in expandAtomicBinOpSubword()
552 .addReg(OldVal) in expandAtomicBinOpSubword()
553 .addReg(Incr); in expandAtomicBinOpSubword()
555 .addReg(BinOpRes) in expandAtomicBinOpSubword()
556 .addReg(Mask); in expandAtomicBinOpSubword()
560 .addReg(Incr) in expandAtomicBinOpSubword()
561 .addReg(Mask); in expandAtomicBinOpSubword()
569 .addReg(OldVal).addReg(Mask2); in expandAtomicBinOpSubword()
571 .addReg(StoreVal).addReg(BinOpRes); in expandAtomicBinOpSubword()
573 .addReg(StoreVal).addReg(Ptr).addImm(0); in expandAtomicBinOpSubword()
575 .addReg(StoreVal).addReg(Mips::ZERO).addMBB(loopMBB); in expandAtomicBinOpSubword()
584 BuildMI(sinkMBB, DL, TII->get(Mips::AND), Dest).addReg(OldVal).addReg(Mask); in expandAtomicBinOpSubword()
586 .addReg(Dest) in expandAtomicBinOpSubword()
587 .addReg(ShiftAmnt); in expandAtomicBinOpSubword()
590 BuildMI(sinkMBB, DL, TII->get(SEOp), Dest).addReg(Dest); in expandAtomicBinOpSubword()
594 .addReg(Dest, RegState::Kill) in expandAtomicBinOpSubword()
597 .addReg(Dest, RegState::Kill) in expandAtomicBinOpSubword()
765 BuildMI(loopMBB, DL, TII->get(LL), OldVal).addReg(Ptr).addImm(0); in expandAtomicBinOp()
787 .addReg(OldVal) in expandAtomicBinOp()
788 .addReg(Incr); in expandAtomicBinOp()
798 .addReg(OldVal) in expandAtomicBinOp()
799 .addReg(Scratch2); in expandAtomicBinOp()
801 .addReg(Incr) in expandAtomicBinOp()
802 .addReg(Scratch2); in expandAtomicBinOp()
804 .addReg(Scratch) in expandAtomicBinOp()
805 .addReg(Scratch2); in expandAtomicBinOp()
812 .addReg(OldVal) in expandAtomicBinOp()
813 .addReg(ZERO); in expandAtomicBinOp()
815 .addReg(Incr) in expandAtomicBinOp()
816 .addReg(Scratch2) in expandAtomicBinOp()
817 .addReg(Scratch); in expandAtomicBinOp()
821 BuildMI(loopMBB, DL, TII->get(Opcode), Scratch).addReg(OldVal).addReg(Incr); in expandAtomicBinOp()
825 BuildMI(loopMBB, DL, TII->get(AND), Scratch).addReg(OldVal).addReg(Incr); in expandAtomicBinOp()
826 BuildMI(loopMBB, DL, TII->get(NOR), Scratch).addReg(ZERO).addReg(Scratch); in expandAtomicBinOp()
830 BuildMI(loopMBB, DL, TII->get(OR), Scratch).addReg(Incr).addReg(ZERO); in expandAtomicBinOp()
834 .addReg(Scratch) in expandAtomicBinOp()
835 .addReg(Ptr) in expandAtomicBinOp()
838 .addReg(Scratch) in expandAtomicBinOp()
839 .addReg(ZERO) in expandAtomicBinOp()