Skip to content

Conversation

@mstorsjo
Copy link
Member

c208a23 added the directive .att_syntax when building for x86 architectures. However, when building for arm64ec (a Windows target, for an ABI compatible with x86_64), the defines for __x86_64__ (and similar ones like __amd64__) are still defined, so we need to check for __arm64ec__ here as well to skip it for such targets.

This matches similar existing ifdefs for x86_64/aarch64 in compiler-rt builtins.

c208a23 added the directive
`.att_syntax` when building for x86 architectures. However,
when building for arm64ec (a Windows target, for an ABI compatible
with x86_64), the defines for `__x86_64__` (and similar ones like
`__amd64__`) are still defined, so we need to check for
`__arm64ec__` here as well to skip it for such targets.

This matches similar existing ifdefs for x86_64/aarch64 in compiler-rt
builtins.
@github-actions
Copy link

github-actions bot commented Oct 22, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

@mstorsjo mstorsjo merged commit f7bbcde into llvm:main Oct 22, 2025
10 checks passed
@mstorsjo mstorsjo deleted the fix-att-asm branch October 22, 2025 14:19
dvbuka pushed a commit to dvbuka/llvm-project that referenced this pull request Oct 27, 2025
c208a23 added the directive
`.att_syntax` when building for x86 architectures. However, when
building for arm64ec (a Windows target, for an ABI compatible with
x86_64), the defines for `__x86_64__` (and similar ones like
`__amd64__`) are still defined, so we need to check for `__arm64ec__`
here as well to skip it for such targets.

This matches similar existing ifdefs for x86_64/aarch64 in compiler-rt
builtins.
Lukacma pushed a commit to Lukacma/llvm-project that referenced this pull request Oct 29, 2025
c208a23 added the directive
`.att_syntax` when building for x86 architectures. However, when
building for arm64ec (a Windows target, for an ABI compatible with
x86_64), the defines for `__x86_64__` (and similar ones like
`__amd64__`) are still defined, so we need to check for `__arm64ec__`
here as well to skip it for such targets.

This matches similar existing ifdefs for x86_64/aarch64 in compiler-rt
builtins.
aokblast pushed a commit to aokblast/llvm-project that referenced this pull request Oct 30, 2025
c208a23 added the directive
`.att_syntax` when building for x86 architectures. However, when
building for arm64ec (a Windows target, for an ABI compatible with
x86_64), the defines for `__x86_64__` (and similar ones like
`__amd64__`) are still defined, so we need to check for `__arm64ec__`
here as well to skip it for such targets.

This matches similar existing ifdefs for x86_64/aarch64 in compiler-rt
builtins.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants