US equity markets gained on Tuesday behind semiconductor advances and lower oil prices, even as multi-decade Treasury yields and slowing money fund inflows tightened short-term debt conditions.