GM slashes thousands of jobs in tech shift