Namo Tassa Bagavatto Arahanto Samma Sammbuddhassa! (Excuse my errors, I'm not fluent).
Did the Lord Buddha ever refer to a doctrine literally called 'materialism' or accuse those of wrong views as being "materialists"?
I will try to answer to the best of my ability! :)
The Buddha never referred to anything as being specifically "materialism," NOR did he say it was wrong because of this lack of mention (at least according to all current Pali translations I have read & know of), although, applying the Buddha's teachings to what many western Abrahamic religions call "materialism" works quite well.
The Buddha would sway away from materialism, due to its active use in the accumulation of sensual objects. This would only keep one on the path of greed. The Buddha preached to let go of all things in the end. This is when one becomes a monk or nun.
If in the lay lifestyle, then one can use the middle way with materialism, do not go overboard, but do not get rid of everything to the point that you will die.
Renunciation as a monk or nun is not extreme in accordance with the Middle Way due to them deciding to only have what is a necessity to live: robes, medicine, shelter, & alms.
To get rid of all things or to actively pursue things are the extremes.
Anyhow, I hope I answered your question!
Metta to you!