CIBC beats Q2 earnings estimates by 2.8% as revenue misses