History

arm-asm: Improve immediate error message in asm_data_processing_opcode.

Danny Milosavljevic committed 5 years ago

Commit 78d0f071 parent a7205f71 file · +1 −0Browse files

Unified · Split

arm-asm.c+1−0
@@ -643,6 +643,7 @@ static void asm_data_processing_opcode(TCCState *s1, int token) · 642 unmodified lines
643 immediate_value = ((immediate_value & 0x3FFFFFFF) << 2) | ((immediate_value & 0xC0000000) >> 30);643 immediate_value = ((immediate_value & 0x3FFFFFFF) << 2) | ((immediate_value & 0xC0000000) >> 30);
644 }644 }
645 if (half_immediate_rotation >= 16) {645 if (half_immediate_rotation >= 16) {
646 immediate_value = ops[2].e.v;
646 tcc_error("immediate value 0x%X cannot be encoded into ARM immediate", (unsigned) immediate_value);647 tcc_error("immediate value 0x%X cannot be encoded into ARM immediate", (unsigned) immediate_value);
647 return;648 return;
648 }649 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t