Err, not PATTERN (temp) but modifued_in_p (PATTERN (insn), temp) certainly that fixes the immediate problem. r~