ISTANBUL — Turkey’s prime minister on Friday accused Europe of showing signs of racism after the European Parliament passed a resolution calling on his government to recognize the mass killings of Armenians in the collapsing Ottoman Empire as genocide.

Although Turkey vowed to disregard the resolution, government officials have lashed out at the European Parliament, the legislature of the European Union, accusing it of contriving obstacles to relations with Turkey. But the remarks by the prime minister, Ahmet Davutoglu, went further.

“The European Parliament should not take decisions that would result in hatred toward a certain religion or ethnic group if it wants to contribute to peace,” Mr. Davutoglu told reporters in Ankara. “This issue is now beyond the Turkish-Armenian issue. It’s a new reflection of the racism in Europe.”

The tensions came a week before Armenians across the world plan to commemorate the 100th anniversary of what historians recognize as the first genocide of the 20th century. Armenians say that as many as 1.5 million Armenian Christians were systematically killed from 1915 to 1923 through mass slaughter, starvation and deportation into the Syrian desert.