Commit 5f3a128f authored by Michael Büsch's avatar Michael Büsch

b43-asm: Allow complex immediates in M and S operands.

Signed-off-by: Michael Büsch's avatarMichael Buesch <mb@bu3sch.de>
parent 1a3add45
...@@ -987,7 +987,7 @@ raw_code : RAW_CODE { ...@@ -987,7 +987,7 @@ raw_code : RAW_CODE {
} }
; ;
extended_operlist : decnum COMMA decnum COMMA operand COMMA operand COMMA operand { extended_operlist : imm_value COMMA imm_value COMMA operand COMMA operand COMMA operand {
struct operlist *ol = xmalloc(sizeof(struct operlist)); struct operlist *ol = xmalloc(sizeof(struct operlist));
struct operand *mask_oper = xmalloc(sizeof(struct operand)); struct operand *mask_oper = xmalloc(sizeof(struct operand));
struct operand *shift_oper = xmalloc(sizeof(struct operand)); struct operand *shift_oper = xmalloc(sizeof(struct operand));
......
...@@ -169,6 +169,7 @@ function_b: ...@@ -169,6 +169,7 @@ function_b:
mov testlabel, r0 /* Can use label as immediate value */ mov testlabel, r0 /* Can use label as immediate value */
mov r0,r1;mov r2, r3 /* ; does split instructions */ mov r0,r1;mov r2, r3 /* ; does split instructions */
mov [(1+1)],[(2+2),off0] /* Can use complex immediates as memory offsets */ mov [(1+1)],[(2+2),off0] /* Can use complex immediates as memory offsets */
orx (0 + 1), (1 * 2), 0, 0, r0 /* Allow complex immediates as M or S */
/* The .initvals section generates an "Initial Values" file /* The .initvals section generates an "Initial Values" file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment