Commit 23f7dafd authored by Christoph Mallon's avatar Christoph Mallon

arm, sparc: Use !in_rX requirements so that register assignment of orrpl (arm)...

arm, sparc: Use !in_rX requirements so that register assignment of orrpl (arm) and cas (sparc) cannot fail.
parent e12a2669
......@@ -310,7 +310,7 @@ OrrPl => {
emit => 'orrpl %D0, %S2, %O',
attr_type => "arm_shifter_operand_t",
in_reqs => [ "gp", "flags", "gp", "gp" ],
out_reqs => [ "in_r2" ],
out_reqs => [ "in_r2 !in_r0 !in_r3" ],
ins => [ "falseval", "flags", "left", "right" ],
init => "init_arm_shifter_operand(res, 3, 0, ARM_SHF_REG, 0);",
},
......
......@@ -640,10 +640,8 @@ Cas => {
ins => [ "ptr", "old", "new", "mem" ],
outs => [ "res", "M" ],
in_reqs => [ "gp", "gp", "gp", "mem" ],
out_reqs => [ "in_r2", "mem" ],
out_reqs => [ "in_r2 !in_r0 !in_r1", "mem" ],
# TODO: we need a must-be-same constraint for the CAS
# for now we use a custom emitter which at least panics if constraints
# are not fulfilled
},
fcmp => {
......
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