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

Side by Side Diff: src/arm/disasm-arm.cc

Issue 6625084: ARM: Improved double to integer truncation.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/constants-arm.h ('k') | src/arm/lithium-arm.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 if ((instr->Opc2Value() == 0x0) && (instr->Opc3Value() == 0x1)) { 1060 if ((instr->Opc2Value() == 0x0) && (instr->Opc3Value() == 0x1)) {
1061 // vmov register to register. 1061 // vmov register to register.
1062 if (instr->SzValue() == 0x1) { 1062 if (instr->SzValue() == 0x1) {
1063 Format(instr, "vmov.f64'cond 'Dd, 'Dm"); 1063 Format(instr, "vmov.f64'cond 'Dd, 'Dm");
1064 } else { 1064 } else {
1065 Format(instr, "vmov.f32'cond 'Sd, 'Sm"); 1065 Format(instr, "vmov.f32'cond 'Sd, 'Sm");
1066 } 1066 }
1067 } else if ((instr->Opc2Value() == 0x0) && (instr->Opc3Value() == 0x3)) { 1067 } else if ((instr->Opc2Value() == 0x0) && (instr->Opc3Value() == 0x3)) {
1068 // vabs 1068 // vabs
1069 Format(instr, "vabs'cond 'Dd, 'Dm"); 1069 Format(instr, "vabs'cond 'Dd, 'Dm");
1070 } else if ((instr->Opc2Value() == 0x1) && (instr->Opc3Value() == 0x1)) {
1071 // vneg
1072 Format(instr, "vneg'cond 'Dd, 'Dm");
1070 } else if ((instr->Opc2Value() == 0x7) && (instr->Opc3Value() == 0x3)) { 1073 } else if ((instr->Opc2Value() == 0x7) && (instr->Opc3Value() == 0x3)) {
1071 DecodeVCVTBetweenDoubleAndSingle(instr); 1074 DecodeVCVTBetweenDoubleAndSingle(instr);
1072 } else if ((instr->Opc2Value() == 0x8) && (instr->Opc3Value() & 0x1)) { 1075 } else if ((instr->Opc2Value() == 0x8) && (instr->Opc3Value() & 0x1)) {
1073 DecodeVCVTBetweenFloatingPointAndInteger(instr); 1076 DecodeVCVTBetweenFloatingPointAndInteger(instr);
1074 } else if (((instr->Opc2Value() >> 1) == 0x6) && 1077 } else if (((instr->Opc2Value() >> 1) == 0x6) &&
1075 (instr->Opc3Value() & 0x1)) { 1078 (instr->Opc3Value() & 0x1)) {
1076 DecodeVCVTBetweenFloatingPointAndInteger(instr); 1079 DecodeVCVTBetweenFloatingPointAndInteger(instr);
1077 } else if (((instr->Opc2Value() == 0x4) || (instr->Opc2Value() == 0x5)) && 1080 } else if (((instr->Opc2Value() == 0x4) || (instr->Opc2Value() == 0x5)) &&
1078 (instr->Opc3Value() & 0x1)) { 1081 (instr->Opc3Value() & 0x1)) {
1079 DecodeVCMP(instr); 1082 DecodeVCMP(instr);
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 pc += d.InstructionDecode(buffer, pc); 1433 pc += d.InstructionDecode(buffer, pc);
1431 fprintf(f, "%p %08x %s\n", 1434 fprintf(f, "%p %08x %s\n",
1432 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 1435 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
1433 } 1436 }
1434 } 1437 }
1435 1438
1436 1439
1437 } // namespace disasm 1440 } // namespace disasm
1438 1441
1439 #endif // V8_TARGET_ARCH_ARM 1442 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/constants-arm.h ('k') | src/arm/lithium-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698