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

Side by Side Diff: test/cctest/test-assembler-arm.cc

Issue 1427003006: Enable ARMv8 32-bit build. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 | « src/flag-definitions.h ('k') | test/mjsunit/math-floor-of-div-nosudiv.js » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1957 matching lines...) Expand 10 before | Expand all | Expand 10 after
1968 CHECK_VRINT(-0.5, -1.0, -0.0, -1.0, -0.0, -0.0) 1968 CHECK_VRINT(-0.5, -1.0, -0.0, -1.0, -0.0, -0.0)
1969 CHECK_VRINT(-0.6, -1.0, -1.0, -1.0, -0.0, -0.0) 1969 CHECK_VRINT(-0.6, -1.0, -1.0, -1.0, -0.0, -0.0)
1970 CHECK_VRINT(-1.1, -1.0, -1.0, -2.0, -1.0, -1.0) 1970 CHECK_VRINT(-1.1, -1.0, -1.0, -2.0, -1.0, -1.0)
1971 CHECK_VRINT(0.5, 1.0, 0.0, 0.0, 1.0, 0.0) 1971 CHECK_VRINT(0.5, 1.0, 0.0, 0.0, 1.0, 0.0)
1972 CHECK_VRINT(0.6, 1.0, 1.0, 0.0, 1.0, 0.0) 1972 CHECK_VRINT(0.6, 1.0, 1.0, 0.0, 1.0, 0.0)
1973 CHECK_VRINT(1.1, 1.0, 1.0, 1.0, 2.0, 1.0) 1973 CHECK_VRINT(1.1, 1.0, 1.0, 1.0, 2.0, 1.0)
1974 double inf = std::numeric_limits<double>::infinity(); 1974 double inf = std::numeric_limits<double>::infinity();
1975 CHECK_VRINT(inf, inf, inf, inf, inf, inf) 1975 CHECK_VRINT(inf, inf, inf, inf, inf, inf)
1976 CHECK_VRINT(-inf, -inf, -inf, -inf, -inf, -inf) 1976 CHECK_VRINT(-inf, -inf, -inf, -inf, -inf, -inf)
1977 CHECK_VRINT(-0.0, -0.0, -0.0, -0.0, -0.0, -0.0) 1977 CHECK_VRINT(-0.0, -0.0, -0.0, -0.0, -0.0, -0.0)
1978
1979 // Check NaN propagation.
1978 double nan = std::numeric_limits<double>::quiet_NaN(); 1980 double nan = std::numeric_limits<double>::quiet_NaN();
1979 CHECK_VRINT(nan, nan, nan, nan, nan, nan) 1981 t.input = nan;
1982 dummy = CALL_GENERATED_CODE(f, &t, 0, 0, 0, 0);
1983 CHECK_EQ(bit_cast<int64_t>(nan), bit_cast<int64_t>(t.ar));
1984 CHECK_EQ(bit_cast<int64_t>(nan), bit_cast<int64_t>(t.nr));
1985 CHECK_EQ(bit_cast<int64_t>(nan), bit_cast<int64_t>(t.mr));
1986 CHECK_EQ(bit_cast<int64_t>(nan), bit_cast<int64_t>(t.pr));
1987 CHECK_EQ(bit_cast<int64_t>(nan), bit_cast<int64_t>(t.zr));
1980 1988
1981 #undef CHECK_VRINT 1989 #undef CHECK_VRINT
1982 } 1990 }
1983 } 1991 }
1984 1992
1985 1993
1986 TEST(regress4292_b) { 1994 TEST(regress4292_b) {
1987 CcTest::InitializeVM(); 1995 CcTest::InitializeVM();
1988 Isolate* isolate = CcTest::i_isolate(); 1996 Isolate* isolate = CcTest::i_isolate();
1989 HandleScope scope(isolate); 1997 HandleScope scope(isolate);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
2034 HandleScope scope(isolate); 2042 HandleScope scope(isolate);
2035 2043
2036 Assembler assm(isolate, NULL, 0); 2044 Assembler assm(isolate, NULL, 0);
2037 __ mov(r0, Operand(isolate->factory()->infinity_value())); 2045 __ mov(r0, Operand(isolate->factory()->infinity_value()));
2038 __ BlockConstPoolFor(1019); 2046 __ BlockConstPoolFor(1019);
2039 for (int i = 0; i < 1019; ++i) __ nop(); 2047 for (int i = 0; i < 1019; ++i) __ nop();
2040 __ vldr(d0, MemOperand(r0, 0)); 2048 __ vldr(d0, MemOperand(r0, 0));
2041 } 2049 }
2042 2050
2043 #undef __ 2051 #undef __
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | test/mjsunit/math-floor-of-div-nosudiv.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698