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

Side by Side Diff: src/arm/assembler-arm.h

Issue 207523005: ARM: Fix Q register encoding (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « no previous file | src/arm/constants-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 (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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 bool is_valid() const { 372 bool is_valid() const {
373 return (0 <= code_) && (code_ < kMaxNumRegisters); 373 return (0 <= code_) && (code_ < kMaxNumRegisters);
374 } 374 }
375 bool is(QwNeonRegister reg) const { return code_ == reg.code_; } 375 bool is(QwNeonRegister reg) const { return code_ == reg.code_; }
376 int code() const { 376 int code() const {
377 ASSERT(is_valid()); 377 ASSERT(is_valid());
378 return code_; 378 return code_;
379 } 379 }
380 void split_code(int* vm, int* m) const { 380 void split_code(int* vm, int* m) const {
381 ASSERT(is_valid()); 381 ASSERT(is_valid());
382 *m = (code_ & 0x10) >> 4; 382 int encoded_code = code_ << 1;
383 *vm = code_ & 0x0F; 383 *m = (encoded_code & 0x10) >> 4;
384 *vm = encoded_code & 0x0F;
384 } 385 }
385 386
386 int code_; 387 int code_;
387 }; 388 };
388 389
389 390
390 typedef QwNeonRegister QuadRegister; 391 typedef QwNeonRegister QuadRegister;
391 392
392 393
393 // Support for the VFP registers s0 to s31 (d0 to d15). 394 // Support for the VFP registers s0 to s31 (d0 to d15).
(...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 public: 1689 public:
1689 explicit EnsureSpace(Assembler* assembler) { 1690 explicit EnsureSpace(Assembler* assembler) {
1690 assembler->CheckBuffer(); 1691 assembler->CheckBuffer();
1691 } 1692 }
1692 }; 1693 };
1693 1694
1694 1695
1695 } } // namespace v8::internal 1696 } } // namespace v8::internal
1696 1697
1697 #endif // V8_ARM_ASSEMBLER_ARM_H_ 1698 #endif // V8_ARM_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/constants-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698