Skip to content

Commit 7c025d3

Browse files
Nikolay Agishevcarlescufi
authored andcommitted
ARC: Fix STR macro for ST* asm instructions
For case of 64-bit arc_v3 architecture "str" macro handles large offsets in incorrrect way. For stl instruction limm swhoud not exceed 255. Signed-off-by: Nikolay Agishev <[email protected]>
1 parent 95bdfb5 commit 7c025d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/arch/arc/asm-compat/asm-macro-64-bit-gnu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
.if \off == 0
3535
stl \d, [\s]
3636
.else
37-
.if \off > 256
37+
.if \off > 255
3838
STR.as \d, \s, \off / 8
3939
.else
4040
stl \d, [\s, \off]

0 commit comments

Comments
 (0)