From a509575a86b216434b1b3e50053ed07e43d6cd75 Mon Sep 17 00:00:00 2001 From: Joshua Warner Date: Thu, 4 Dec 2014 15:21:09 -0700 Subject: [PATCH] remove unused arm utilities / constants --- src/codegen/target/arm/assembler.cpp | 5 ----- src/codegen/target/arm/registers.h | 4 ---- 2 files changed, 9 deletions(-) diff --git a/src/codegen/target/arm/assembler.cpp b/src/codegen/target/arm/assembler.cpp index 8932c7ec83..84e7d8d3cc 100644 --- a/src/codegen/target/arm/assembler.cpp +++ b/src/codegen/target/arm/assembler.cpp @@ -52,11 +52,6 @@ bool vfpSupported() } } // namespace isa -inline unsigned lo8(int64_t i) -{ - return (unsigned)(i & MASK_LO8); -} - const RegisterFile MyRegisterFileWithoutFloats(GPR_MASK, 0); const RegisterFile MyRegisterFileWithFloats(GPR_MASK, FPR_MASK); diff --git a/src/codegen/target/arm/registers.h b/src/codegen/target/arm/registers.h index ed639acac6..4cd7fb9da4 100644 --- a/src/codegen/target/arm/registers.h +++ b/src/codegen/target/arm/registers.h @@ -19,7 +19,6 @@ namespace codegen { namespace arm { const uint64_t MASK_LO32 = 0xffffffff; -const unsigned MASK_LO16 = 0xffff; const unsigned MASK_LO8 = 0xff; const int N_GPRS = 16; @@ -27,9 +26,6 @@ const int N_FPRS = 16; const uint32_t GPR_MASK = 0xffff; const uint32_t FPR_MASK = 0xffff0000; -const uint64_t GPR_MASK64 = GPR_MASK | (uint64_t)GPR_MASK << 32; -const uint64_t FPR_MASK64 = FPR_MASK | (uint64_t)FPR_MASK << 32; - inline bool isFpr(lir::Register* reg) { return reg->low >= N_GPRS;