Get the latest tech news

LLVM Clang Switches MMX Intrinsics To Use SSE2 Instead


Following LLVM/Clang recently dropping support for AMD 3DNow! instructions, the open-source compiler stack is now pushing the MMX SIMD instruction set to a backseat

The pull request by James Knight explains:"The MMX instruction set is legacy, and the SSE2 variants are in every way superior, when they are available -- and they have been available since the Pentium 4 was released, 20 years ago. Targeting these older CPUs remains supported -- simply without the ability to use MMX compiler intrinsics. Worse, even if the user did write code that correctly calls _mm_empty() in the right places, LLVM may sometimes reorder x87 and mmx operations around each-other, unaware of this mode switching issue."

Get the Android app

Or read this on Phoronix

Read more on:

Photo of llvm clang

llvm clang

Photo of sse2

sse2

Related news:

News photo

LLVM Clang 19 Branched, LLVM 20 Enters Development- No AMD Zen 5 "Znver5" Merged Yet

News photo

LLVM Clang 19 Adds Initial "-std=c2y" Support For The Next C Standard

News photo

LLVM Clang 19 Lands Support For C23's #embed