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: src/ia32/assembler-ia32.cc

Issue 153923005: A64: Synchronize with r17525. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/assembler-ia32-inl.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) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 546
547 547
548 void Assembler::mov_w(const Operand& dst, Register src) { 548 void Assembler::mov_w(const Operand& dst, Register src) {
549 EnsureSpace ensure_space(this); 549 EnsureSpace ensure_space(this);
550 EMIT(0x66); 550 EMIT(0x66);
551 EMIT(0x89); 551 EMIT(0x89);
552 emit_operand(src, dst); 552 emit_operand(src, dst);
553 } 553 }
554 554
555 555
556 void Assembler::mov_w(const Operand& dst, int16_t imm16) {
557 EnsureSpace ensure_space(this);
558 EMIT(0x66);
559 EMIT(0xC7);
560 emit_operand(eax, dst);
561 EMIT(static_cast<int8_t>(imm16 & 0xff));
562 EMIT(static_cast<int8_t>(imm16 >> 8));
563 }
564
565
556 void Assembler::mov(Register dst, int32_t imm32) { 566 void Assembler::mov(Register dst, int32_t imm32) {
557 EnsureSpace ensure_space(this); 567 EnsureSpace ensure_space(this);
558 EMIT(0xB8 | dst.code()); 568 EMIT(0xB8 | dst.code());
559 emit(imm32); 569 emit(imm32);
560 } 570 }
561 571
562 572
563 void Assembler::mov(Register dst, const Immediate& x) { 573 void Assembler::mov(Register dst, const Immediate& x) {
564 EnsureSpace ensure_space(this); 574 EnsureSpace ensure_space(this);
565 EMIT(0xB8 | dst.code()); 575 EMIT(0xB8 | dst.code());
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after
2052 void Assembler::xorpd(XMMRegister dst, XMMRegister src) { 2062 void Assembler::xorpd(XMMRegister dst, XMMRegister src) {
2053 ASSERT(IsEnabled(SSE2)); 2063 ASSERT(IsEnabled(SSE2));
2054 EnsureSpace ensure_space(this); 2064 EnsureSpace ensure_space(this);
2055 EMIT(0x66); 2065 EMIT(0x66);
2056 EMIT(0x0F); 2066 EMIT(0x0F);
2057 EMIT(0x57); 2067 EMIT(0x57);
2058 emit_sse_operand(dst, src); 2068 emit_sse_operand(dst, src);
2059 } 2069 }
2060 2070
2061 2071
2072 void Assembler::andps(XMMRegister dst, XMMRegister src) {
2073 EnsureSpace ensure_space(this);
2074 EMIT(0x0F);
2075 EMIT(0x54);
2076 emit_sse_operand(dst, src);
2077 }
2078
2079
2080 void Assembler::orps(XMMRegister dst, XMMRegister src) {
2081 EnsureSpace ensure_space(this);
2082 EMIT(0x0F);
2083 EMIT(0x56);
2084 emit_sse_operand(dst, src);
2085 }
2086
2087
2062 void Assembler::xorps(XMMRegister dst, XMMRegister src) { 2088 void Assembler::xorps(XMMRegister dst, XMMRegister src) {
2063 EnsureSpace ensure_space(this); 2089 EnsureSpace ensure_space(this);
2064 EMIT(0x0F); 2090 EMIT(0x0F);
2065 EMIT(0x57); 2091 EMIT(0x57);
2066 emit_sse_operand(dst, src); 2092 emit_sse_operand(dst, src);
2067 } 2093 }
2068 2094
2069 2095
2070 void Assembler::sqrtsd(XMMRegister dst, XMMRegister src) { 2096 void Assembler::sqrtsd(XMMRegister dst, XMMRegister src) {
2071 ASSERT(IsEnabled(SSE2)); 2097 ASSERT(IsEnabled(SSE2));
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
2337 EnsureSpace ensure_space(this); 2363 EnsureSpace ensure_space(this);
2338 EMIT(0x66); 2364 EMIT(0x66);
2339 EMIT(0x0F); 2365 EMIT(0x0F);
2340 EMIT(0x3A); 2366 EMIT(0x3A);
2341 EMIT(0x17); 2367 EMIT(0x17);
2342 emit_sse_operand(src, dst); 2368 emit_sse_operand(src, dst);
2343 EMIT(imm8); 2369 EMIT(imm8);
2344 } 2370 }
2345 2371
2346 2372
2347 void Assembler::andps(XMMRegister dst, XMMRegister src) {
2348 EnsureSpace ensure_space(this);
2349 EMIT(0x0F);
2350 EMIT(0x54);
2351 emit_sse_operand(dst, src);
2352 }
2353
2354
2355 void Assembler::pand(XMMRegister dst, XMMRegister src) { 2373 void Assembler::pand(XMMRegister dst, XMMRegister src) {
2356 ASSERT(IsEnabled(SSE2)); 2374 ASSERT(IsEnabled(SSE2));
2357 EnsureSpace ensure_space(this); 2375 EnsureSpace ensure_space(this);
2358 EMIT(0x66); 2376 EMIT(0x66);
2359 EMIT(0x0F); 2377 EMIT(0x0F);
2360 EMIT(0xDB); 2378 EMIT(0xDB);
2361 emit_sse_operand(dst, src); 2379 emit_sse_operand(dst, src);
2362 } 2380 }
2363 2381
2364 2382
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
2689 fprintf(coverage_log, "%s\n", file_line); 2707 fprintf(coverage_log, "%s\n", file_line);
2690 fflush(coverage_log); 2708 fflush(coverage_log);
2691 } 2709 }
2692 } 2710 }
2693 2711
2694 #endif 2712 #endif
2695 2713
2696 } } // namespace v8::internal 2714 } } // namespace v8::internal
2697 2715
2698 #endif // V8_TARGET_ARCH_IA32 2716 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/assembler-ia32-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698