Thiago Neves scored twice and Diego added a third as world champions Brazil thrashed China 3-0 on Wednesday to wrap up group play unbeaten at the Beijing Olympics.
Brazil won Group E with 9 points from three matches, and will play Cameroon in the quarterfinals on Saturday.
Belgium also advanced from the group, and will face Italy in the last eight on Saturday.
The loss eliminated hosts China from the tournament.