[Arm]: Assert that movw/movt is only emitted for Armv7 targets

R=jochen@chromium.org

Review URL: https://codereview.chromium.org/402923002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22512 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
rmcilroy@chromium.org 2014-07-21 16:20:19 +00:00
parent 85bc602912
commit 79d7803555

View File

@ -1495,11 +1495,13 @@ void Assembler::mov_label_offset(Register dst, Label* label) {
void Assembler::movw(Register reg, uint32_t immediate, Condition cond) { void Assembler::movw(Register reg, uint32_t immediate, Condition cond) {
ASSERT(CpuFeatures::IsSupported(ARMv7));
emit(cond | 0x30*B20 | reg.code()*B12 | EncodeMovwImmediate(immediate)); emit(cond | 0x30*B20 | reg.code()*B12 | EncodeMovwImmediate(immediate));
} }
void Assembler::movt(Register reg, uint32_t immediate, Condition cond) { void Assembler::movt(Register reg, uint32_t immediate, Condition cond) {
ASSERT(CpuFeatures::IsSupported(ARMv7));
emit(cond | 0x34*B20 | reg.code()*B12 | EncodeMovwImmediate(immediate)); emit(cond | 0x34*B20 | reg.code()*B12 | EncodeMovwImmediate(immediate));
} }