| Index: test/unittests/compiler/register-allocator-unittest.cc
|
| diff --git a/test/unittests/compiler/register-allocator-unittest.cc b/test/unittests/compiler/register-allocator-unittest.cc
|
| index 71a726f1677450d5d2a1bd6c3a6ef4797ece2337..22b1b4448570a1ace42a0de35fbbae45ac0cef2f 100644
|
| --- a/test/unittests/compiler/register-allocator-unittest.cc
|
| +++ b/test/unittests/compiler/register-allocator-unittest.cc
|
| @@ -101,6 +101,17 @@ TEST_F(RegisterAllocatorTest, CanAllocateThreeRegisters) {
|
| Allocate();
|
| }
|
|
|
| +TEST_F(RegisterAllocatorTest, CanAllocateThreeFPRegisters) {
|
| + // return p0 + p1;
|
| + StartBlock();
|
| + VReg a_reg = FPParameter();
|
| + VReg b_reg = FPParameter();
|
| + VReg c_reg = EmitOI(FPReg(1), Reg(a_reg, 1), Reg(b_reg, 0));
|
| + Return(c_reg);
|
| + EndBlock(Last());
|
| +
|
| + Allocate();
|
| +}
|
|
|
| TEST_F(RegisterAllocatorTest, SimpleLoop) {
|
| // i = K;
|
|
|