The Standard & Poor's 500 Index rose Tuesday, lifted by lower oil prices and a rise in shares of insurer MGIC Investment Corp.
The S&P 500 gained 21.39 points to 1,273.70 after Federal Reserve Chairman Ben Bernanke said the central bank might extend its lending efforts to investment banks.
MGIC shares rose $1.70, or 29.3 percent, to $7.50.
Bond insurer MBIA Inc. gained 85 cents, or 21.7 percent, to $4.76.
Shares of Washington Mutual Inc. rose 86 cents, or 16.8 percent, to $5.99.
On the losing side, shares of Office Depot Inc. posted the biggest decline on the S&P 500 after the office supplies retailer forecast a 10 percent drop in same-store sales for the second quarter.
Shares of Office Depot declined $3.29, or 31.6 percent, to $7.12. The stock earlier traded at $6.60, its lowest price in nearly eight years.
Shares of EMC Corp. tumbled $1.75, or 11.6 percent, to $13.39.
Shares of U.S. Steel Corp. lost $7.20, or 4.6 percent, to $150.55.