Skip to content

Commit eaaab15

Browse files
authored
SIMD not supported on AArch64 yet (#22440)
1 parent 91bce23 commit eaaab15

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

compiler/src/dmd/target.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ void addPredefinedGlobalIdentifiers(const ref Target tgt)
171171
import dmd.cond : VersionCondition;
172172

173173
alias predef = VersionCondition.addPredefinedGlobalIdent;
174-
if (tgt.cpu >= CPU.sse2)
174+
if ((tgt.isX86_64 || tgt.isX86) && tgt.cpu >= CPU.sse2)
175175
{
176176
predef("D_SIMD");
177177
if (tgt.cpu >= CPU.avx)
@@ -1351,7 +1351,7 @@ extern (C++) struct Target
13511351
*/
13521352
extern (D) bool isXmmSupported() @safe
13531353
{
1354-
return (isX86_64 || isAArch64) || (isX86 && os == Target.OS.OSX);
1354+
return (isX86_64 /*|| isAArch64*/) || (isX86 && os == Target.OS.OSX);
13551355
}
13561356

13571357
/**

0 commit comments

Comments
 (0)