La Roja beat Ivory Coast in extra time to ensure they progress to the final four, while Mexico trounced South Korea to set up a tie with Brazil
Tournament hosts Japan will meet Spain in the Olynpics semi-finals.
Japan beat New Zealand on penalties on Saturday to secure a place in the final four.
The two sides played out a goalless 120 minutes at the Kashima Soccer Stadium to take the tie into a shootout, with Japan coming out 4-2 winners.