If you really need this behavior for some reason you can achieve it by using a separate table for sequencing and a BEFORE INSERT
trigger
First you need a simple table for sequencing purposes that might look like
CREATE TABLE table1_seq
(
id int not null auto_increment primary key
);
Then your factual table schema might look like
CREATE TABLE table1
(
id int not null default 0 primary key,
content int
);
Now the trigger
DELIMITER $$
CREATE TRIGGER tg_ai_table1
BEFORE INSERT ON table1
FOR EACH ROW
BEGIN
INSERT INTO table1_seq() VALUES();
SET NEW.id = LAST_INSERT_ID(), NEW.content = COALESCE(NEW.content, NEW.id);
END$$
DELIMITER ;
Now you if you insert into table1
INSERT INTO table1 () VALUES (NULL),(-1);
You'll have
| ID | CONTENT |
|----|---------|
| 1 | 1 |
| 2 | -1 |
Here is SQLFiddle demo