IBM posted first-quarter earnings Tuesday that beat analysts’ estimates.