South Korea’s semiconductor output fell for the first time in more than four years which shows a sign that chipmakers are bracing for a slowdown in global demand.

Semiconductor production slid 1.7% in August from a year earlier, a sharp reversal from the 17.3% gain reported in July, Statistics Korea data showed Friday.

The first fall in output since January 2018 coincides with chip inventories soaring 67.3%, suggesting producers are adjusting to a deteriorating international outlook. Factory shipments also fell for a second consecutive month in August, dropping 20.4%, the statistics office said.

The trio of indicators offers the latest evidence that the global economy is headed toward a downturn, led by cooling electronics demand that has been a major source of economic growth. 

In the US, Micron Technology Inc. delivered a weak forecast for the current quarter, saying it’s acting swiftly to cope with the weakening demand, including slowing production.

Korea’s Exporters Show More Hints of Slowdown in Global Demand

Earlier this month, Korea’s Samsung Electronics Co. also warned of a gloomy outlook for the second half of the year. The market for dynamic random access memory, Samsung’s key cash driver, is tumbling so fast that it halved in size between May and July, according to IC Insights.

Chipmakers are the biggest industrial sector in South Korea’s trade-reliant economy, which is battling high energy prices and a currency that has depreciated the most in Asia this year outside the yen.