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

Unified Diff: src/arm/constants-arm.h

Issue 2868603002: [ARM] Improve VFP register moves. (Closed)
Patch Set: Rebase. Created 3 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 | « src/arm/assembler-arm.cc ('k') | src/arm/disasm-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/constants-arm.h
diff --git a/src/arm/constants-arm.h b/src/arm/constants-arm.h
index 338ab40bae5fd5ee745d03184eada3c6c9df2fcf..21794a5a5c9d8b411f7043db2944c160b2eb4ef0 100644
--- a/src/arm/constants-arm.h
+++ b/src/arm/constants-arm.h
@@ -342,10 +342,15 @@ inline int NeonU(NeonDataType dt) { return static_cast<int>(dt) >> 2; }
inline int NeonSz(NeonDataType dt) { return static_cast<int>(dt) & 0x3; }
// Convert sizes to data types (U bit is clear).
-inline NeonDataType NeonSizeToDatatype(NeonSize size) {
+inline NeonDataType NeonSizeToDataType(NeonSize size) {
+ DCHECK_NE(Neon64, size);
return static_cast<NeonDataType>(size);
}
+inline NeonSize NeonDataTypeToSize(NeonDataType dt) {
+ return static_cast<NeonSize>(NeonSz(dt));
+}
+
enum NeonListType {
nlt_1 = 0x7,
nlt_2 = 0xA,
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/arm/disasm-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698