Taiwan chipmaker TSMC says quarterly profit $6 milliard