IBM was sliding ahead of Monday's opening bell after announcing a deal to acquire the cloud-software company Red Hat for $34 billion.