Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1026)

Unified Diff: test/unittests/compiler/register-allocator-unittest.cc

Issue 2400513002: [Turbofan] Allow FP operands and vregs in InstructionSequenceTest. (Closed)
Patch Set: Rebase. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..274e24a8fa0ae3b75cbfbd1c6922d046843aa322 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(kFloat64);
+ VReg b_reg = FPParameter(kFloat64);
+ VReg c_reg = EmitOI(Reg(1, kFloat64), Reg(a_reg, 1), Reg(b_reg, 0));
+ Return(c_reg);
+ EndBlock(Last());
+
+ Allocate();
+}
TEST_F(RegisterAllocatorTest, SimpleLoop) {
// i = K;

Powered by Google App Engine
This is Rietveld 408576698