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

Side by Side Diff: runtime/vm/assembler_x64_test.cc

Issue 2750843003: Rename TARGET_OS_* to HOST_OS_*. (Closed)
Patch Set: DEPS Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/atomic.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/os.h" 9 #include "vm/os.h"
10 #include "vm/unit_test.h" 10 #include "vm/unit_test.h"
(...skipping 3395 matching lines...) Expand 10 before | Expand all | Expand 10 after
3406 EXPECT_EQ(12.0, res); 3406 EXPECT_EQ(12.0, res);
3407 res = reinterpret_cast<DoubleToDoubleTruncCode>(test->entry())(-12.3); 3407 res = reinterpret_cast<DoubleToDoubleTruncCode>(test->entry())(-12.3);
3408 EXPECT_EQ(-12.0, res); 3408 EXPECT_EQ(-12.0, res);
3409 res = reinterpret_cast<DoubleToDoubleTruncCode>(test->entry())(-12.8); 3409 res = reinterpret_cast<DoubleToDoubleTruncCode>(test->entry())(-12.8);
3410 EXPECT_EQ(-12.0, res); 3410 EXPECT_EQ(-12.0, res);
3411 } 3411 }
3412 3412
3413 3413
3414 ASSEMBLER_TEST_GENERATE(DoubleAbs, assembler) { 3414 ASSEMBLER_TEST_GENERATE(DoubleAbs, assembler) {
3415 EnterTestFrame(assembler); 3415 EnterTestFrame(assembler);
3416 #if defined(TARGET_OS_WINDOWS) 3416 #if defined(HOST_OS_WINDOWS)
3417 // First argument is code object, second argument is thread. MSVC passes 3417 // First argument is code object, second argument is thread. MSVC passes
3418 // third argument in XMM2. 3418 // third argument in XMM2.
3419 __ DoubleAbs(XMM2); 3419 __ DoubleAbs(XMM2);
3420 __ movaps(XMM0, XMM2); 3420 __ movaps(XMM0, XMM2);
3421 #else 3421 #else
3422 // SysV ABI allocates integral and double registers for arguments 3422 // SysV ABI allocates integral and double registers for arguments
3423 // independently. 3423 // independently.
3424 __ DoubleAbs(XMM0); 3424 __ DoubleAbs(XMM0);
3425 #endif 3425 #endif
3426 LeaveTestFrame(assembler); 3426 LeaveTestFrame(assembler);
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
3580 int res = reinterpret_cast<ConditionalMovesNoOverflowCode>(test->entry())( 3580 int res = reinterpret_cast<ConditionalMovesNoOverflowCode>(test->entry())(
3581 0x7fffffffffffffff, 2); 3581 0x7fffffffffffffff, 2);
3582 EXPECT_EQ(1, res); 3582 EXPECT_EQ(1, res);
3583 res = reinterpret_cast<ConditionalMovesNoOverflowCode>(test->entry())(1, 1); 3583 res = reinterpret_cast<ConditionalMovesNoOverflowCode>(test->entry())(1, 1);
3584 EXPECT_EQ(0, res); 3584 EXPECT_EQ(0, res);
3585 } 3585 }
3586 3586
3587 } // namespace dart 3587 } // namespace dart
3588 3588
3589 #endif // defined TARGET_ARCH_X64 3589 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/atomic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698