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

Side by Side Diff: src/x64/assembler-x64.cc

Issue 2831009: Remove the comisd instruction from the ia32 and x64 assemblers. We... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 6 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/x64/assembler-x64.h ('k') | src/x64/codegen-x64.cc » ('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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 2720 matching lines...) Expand 10 before | Expand all | Expand 10 after
2731 EnsureSpace ensure_space(this); 2731 EnsureSpace ensure_space(this);
2732 last_pc_ = pc_; 2732 last_pc_ = pc_;
2733 emit(0xF2); 2733 emit(0xF2);
2734 emit_optional_rex_32(dst, src); 2734 emit_optional_rex_32(dst, src);
2735 emit(0x0F); 2735 emit(0x0F);
2736 emit(0x51); 2736 emit(0x51);
2737 emit_sse_operand(dst, src); 2737 emit_sse_operand(dst, src);
2738 } 2738 }
2739 2739
2740 2740
2741 void Assembler::comisd(XMMRegister dst, XMMRegister src) {
2742 EnsureSpace ensure_space(this);
2743 last_pc_ = pc_;
2744 emit(0x66);
2745 emit_optional_rex_32(dst, src);
2746 emit(0x0f);
2747 emit(0x2f);
2748 emit_sse_operand(dst, src);
2749 }
2750
2751
2752 void Assembler::ucomisd(XMMRegister dst, XMMRegister src) { 2741 void Assembler::ucomisd(XMMRegister dst, XMMRegister src) {
2753 EnsureSpace ensure_space(this); 2742 EnsureSpace ensure_space(this);
2754 last_pc_ = pc_; 2743 last_pc_ = pc_;
2755 emit(0x66); 2744 emit(0x66);
2756 emit_optional_rex_32(dst, src); 2745 emit_optional_rex_32(dst, src);
2757 emit(0x0f); 2746 emit(0x0f);
2758 emit(0x2e); 2747 emit(0x2e);
2759 emit_sse_operand(dst, src); 2748 emit_sse_operand(dst, src);
2760 } 2749 }
2761 2750
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
2866 // specially coded on x64 means that it is a relative 32 bit address, as used 2855 // specially coded on x64 means that it is a relative 32 bit address, as used
2867 // by branch instructions. 2856 // by branch instructions.
2868 return (1 << rmode_) & kApplyMask; 2857 return (1 << rmode_) & kApplyMask;
2869 } 2858 }
2870 2859
2871 2860
2872 2861
2873 } } // namespace v8::internal 2862 } } // namespace v8::internal
2874 2863
2875 #endif // V8_TARGET_ARCH_X64 2864 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698