The broad-market index ended the day with a loss, bringing it closer to bear market territory.