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

Unified Diff: runtime/vm/simulator_arm64.h

Issue 293993013: Beings adding SIMD support to arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/intrinsifier_arm64.cc ('k') | runtime/vm/simulator_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/simulator_arm64.h
===================================================================
--- runtime/vm/simulator_arm64.h (revision 36461)
+++ runtime/vm/simulator_arm64.h (working copy)
@@ -25,8 +25,10 @@
class SimulatorSetjmpBuffer;
typedef struct {
- int64_t lo;
- int64_t hi;
+ union {
+ int64_t i64[2];
+ int32_t i32[4];
+ } bits;
} simd_value_t;
class Simulator {
@@ -51,10 +53,12 @@
void set_wregister(Register reg, int32_t value, R31Type r31t = R31IsSP);
int32_t get_wregister(Register reg, R31Type r31t = R31IsSP) const;
- // Get and set a V register in double ('d') mode. Setting clears the high
- // 64 bits of the V register. Getting ignores the high 64 bits.
- int64_t get_vregisterd(VRegister reg) const;
- void set_vregisterd(VRegister reg, int64_t value);
+ int32_t get_vregisters(VRegister reg, int idx) const;
+ void set_vregisters(VRegister reg, int idx, int32_t value);
+
+ int64_t get_vregisterd(VRegister reg, int idx) const;
+ void set_vregisterd(VRegister reg, int idx, int64_t value);
+
void get_vregister(VRegister reg, simd_value_t* value) const;
void set_vregister(VRegister reg, const simd_value_t& value);
« no previous file with comments | « runtime/vm/intrinsifier_arm64.cc ('k') | runtime/vm/simulator_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698