Lines Matching refs:srs
364 ScratchRegisterScope srs(GetAssembler()); in TestLoadConst64() local
365 srs.ExcludeXRegister(reg); in TestLoadConst64()
833 ScratchRegisterScope srs(GetAssembler()); in TestAddConst() local
834 srs.ExcludeXRegister(rs1); in TestAddConst()
835 srs.ExcludeXRegister(rd); in TestAddConst()
907 ScratchRegisterScope srs(GetAssembler()); in RepeatLoadStoreArbitraryOffset() local
908 srs.ExcludeXRegister(rs1); in RepeatLoadStoreArbitraryOffset()
957 ScratchRegisterScope srs(GetAssembler()); in TestLoadStoreArbitraryOffset() local
958 srs.ExcludeXRegister(rd); in TestLoadStoreArbitraryOffset()
8489 ScratchRegisterScope srs(GetAssembler()); in TEST_F() local
8490 srs.ExcludeXRegister(TMP); in TEST_F()
8491 srs.ExcludeXRegister(TMP2); in TEST_F()
9199 ScratchRegisterScope srs(GetAssembler()); in TEST_F() local
9200 ASSERT_EQ(2u, srs.AvailableXRegisters()); // Default: TMP(T6) and TMP2(T5). in TEST_F()
9201 ASSERT_EQ(1u, srs.AvailableFRegisters()); // Default: FTMP(FT11). in TEST_F()
9203 XRegister tmp = srs.AllocateXRegister(); in TEST_F()
9205 XRegister tmp2 = srs.AllocateXRegister(); in TEST_F()
9207 ASSERT_EQ(0u, srs.AvailableXRegisters()); in TEST_F()
9209 FRegister ftmp = srs.AllocateFRegister(); in TEST_F()
9211 ASSERT_EQ(0u, srs.AvailableFRegisters()); in TEST_F()
9214 srs.FreeXRegister(A0); in TEST_F()
9215 srs.FreeXRegister(A1); in TEST_F()
9216 srs.FreeFRegister(FA0); in TEST_F()
9217 srs.FreeFRegister(FA1); in TEST_F()
9218 ASSERT_EQ(2u, srs.AvailableXRegisters()); in TEST_F()
9219 ASSERT_EQ(2u, srs.AvailableFRegisters()); in TEST_F()
9235 ASSERT_EQ(2u, srs.AvailableXRegisters()); in TEST_F()
9236 ASSERT_EQ(2u, srs.AvailableFRegisters()); in TEST_F()
9238 srs.IncludeXRegister(A0); // No-op as the register was already available. in TEST_F()
9239 ASSERT_EQ(2u, srs.AvailableXRegisters()); in TEST_F()
9240 srs.IncludeFRegister(FA0); // No-op as the register was already available. in TEST_F()
9241 ASSERT_EQ(2u, srs.AvailableFRegisters()); in TEST_F()
9242 srs.IncludeXRegister(S0); in TEST_F()
9243 ASSERT_EQ(3u, srs.AvailableXRegisters()); in TEST_F()
9244 srs.IncludeFRegister(FS0); in TEST_F()
9245 ASSERT_EQ(3u, srs.AvailableFRegisters()); in TEST_F()
9247 srs.ExcludeXRegister(S1); // No-op as the register was not available. in TEST_F()
9248 ASSERT_EQ(3u, srs.AvailableXRegisters()); in TEST_F()
9249 srs.ExcludeFRegister(FS1); // No-op as the register was not available. in TEST_F()
9250 ASSERT_EQ(3u, srs.AvailableFRegisters()); in TEST_F()
9251 srs.ExcludeXRegister(A0); in TEST_F()
9252 ASSERT_EQ(2u, srs.AvailableXRegisters()); in TEST_F()
9253 srs.ExcludeFRegister(FA0); in TEST_F()
9254 ASSERT_EQ(2u, srs.AvailableFRegisters()); in TEST_F()