Skip to content

Conversation

@tambry
Copy link
Contributor

@tambry tambry commented Nov 6, 2025

Implementation files using the Intel syntax typically explicitly specify it. Do the same for the few files using AT&T syntax.

This enables building LLVM with -mllvm -x86-asm-syntax=intel in one's Clang config files (i.e. a global preference for Intel syntax).

@tambry tambry self-assigned this Nov 6, 2025
@tambry tambry requested a review from JDevlieghere as a code owner November 6, 2025 13:12
@llvmbot llvmbot added the lldb label Nov 6, 2025
@llvmbot
Copy link
Member

llvmbot commented Nov 6, 2025

@llvm/pr-subscribers-lldb

Author: Raul Tambre (tambry)

Changes

Implementation files using the Intel syntax typically explicitly specify it. Do the same for the few files using AT&T syntax.

This enables building LLVM with -mllvm -x86-asm-syntax=intel in one's Clang config files (i.e. a global preference for Intel syntax).


Full diff: https://github.com/llvm/llvm-project/pull/166770.diff

20 Files Affected:

  • (modified) lldb/test/API/functionalities/disassembler-variables/d_original_example.s (+2-1)
  • (modified) lldb/test/API/functionalities/disassembler-variables/live_across_call.s (+2-1)
  • (modified) lldb/test/API/functionalities/disassembler-variables/loop_reg_rotate.s (+3-2)
  • (modified) lldb/test/API/functionalities/disassembler-variables/regs_fp_params.s (+1)
  • (modified) lldb/test/API/functionalities/disassembler-variables/regs_int_params.s (+1)
  • (modified) lldb/test/API/functionalities/disassembler-variables/regs_mixed_params.s (+1)
  • (modified) lldb/test/API/functionalities/disassembler-variables/seed_reg_const_undef.s (+1)
  • (modified) lldb/test/Shell/SymbolFile/DWARF/x86/DW_TAG_GNU_call_site-DW_AT_low_pc.s (+1)
  • (modified) lldb/test/Shell/SymbolFile/DWARF/x86/DW_TAG_variable-DW_AT_decl_file-DW_AT_abstract_origin-crosscu1.s (+1)
  • (modified) lldb/test/Shell/SymbolFile/DWARF/x86/Inputs/DW_TAG_variable-DW_AT_decl_file-DW_AT_abstract_origin-crosscu2.s (+1)
  • (modified) lldb/test/Shell/Unwind/Inputs/basic-block-sections-with-dwarf.s (+1)
  • (modified) lldb/test/Shell/Unwind/Inputs/eh-frame-augment-noop.s (+1)
  • (modified) lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind-abort.s (+1)
  • (modified) lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind-val-offset.s (+1)
  • (modified) lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind.s (+1)
  • (modified) lldb/test/Shell/Unwind/Inputs/eh-frame-small-fde.s (+1)
  • (modified) lldb/test/Shell/Unwind/Inputs/prefer-debug-over-eh-frame.s (+1)
  • (modified) lldb/test/Shell/Unwind/Inputs/thread-step-out-ret-addr-check.s (+1)
  • (modified) lldb/test/Shell/Unwind/Inputs/trap_frame_sym_ctx.s (+1)
  • (modified) lldb/test/Shell/Unwind/Inputs/unwind-plan-dwarf-dump.s (+1)
diff --git a/lldb/test/API/functionalities/disassembler-variables/d_original_example.s b/lldb/test/API/functionalities/disassembler-variables/d_original_example.s
index c38742cfc683e..8824d4c81fa2c 100644
--- a/lldb/test/API/functionalities/disassembler-variables/d_original_example.s
+++ b/lldb/test/API/functionalities/disassembler-variables/d_original_example.s
@@ -1,6 +1,6 @@
 /* Original C (for context):
 * #include <stdio.h>
-* 
+*
 * int main(int argc, char **argv) {
 *   for (int i = 1; i < argc; ++i)
 *     puts(argv[i]);
@@ -8,6 +8,7 @@
 * }
 */
 	.file	"d_original_example.c"
+	.att_syntax
 	.text
 	.globl	main                            # -- Begin function main
 	.p2align	4
diff --git a/lldb/test/API/functionalities/disassembler-variables/live_across_call.s b/lldb/test/API/functionalities/disassembler-variables/live_across_call.s
index cd9f08afe6fdc..4bdf68cbbebb4 100644
--- a/lldb/test/API/functionalities/disassembler-variables/live_across_call.s
+++ b/lldb/test/API/functionalities/disassembler-variables/live_across_call.s
@@ -1,7 +1,7 @@
 /* Original C (for context):
 * // Declare a real external call so the compiler must respect ABI clobbers.
 * extern int leaf(int) __attribute__((noinline));
-* 
+*
 * __attribute__((noinline))
 * int live_across_call(int x) {
 *   volatile int a = x;                // a starts in a GPR (from arg)
@@ -12,6 +12,7 @@
 * }
 */
 	.file	"live_across_call.c"
+	.att_syntax
 	.text
 	.globl	live_across_call                # -- Begin function live_across_call
 	.p2align	4
diff --git a/lldb/test/API/functionalities/disassembler-variables/loop_reg_rotate.s b/lldb/test/API/functionalities/disassembler-variables/loop_reg_rotate.s
index c01e2b28fd2be..c35116551baab 100644
--- a/lldb/test/API/functionalities/disassembler-variables/loop_reg_rotate.s
+++ b/lldb/test/API/functionalities/disassembler-variables/loop_reg_rotate.s
@@ -3,7 +3,7 @@
 * int loop_reg_rotate(int n, int seed) {
 *   volatile int acc = seed;    // keep as a named local
 *   int i = 0, j = 1, k = 2;    // extra pressure but not enough to spill
-* 
+*
 *   for (int t = 0; t < n; ++t) {
 *     // Mix uses so the allocator may reshuffle regs for 'acc'
 *     acc = acc + i;
@@ -13,12 +13,13 @@
 *     acc = acc + k;
 *     i ^= acc; j += acc; k ^= j;
 *   }
-* 
+*
 *   asm volatile("" :: "r"(acc));
 *   return acc + i + j + k;
 * }
 */
 	.file	"loop_reg_rotate.c"
+	.att_syntax
 	.text
 	.globl	loop_reg_rotate                 # -- Begin function loop_reg_rotate
 	.p2align	4
diff --git a/lldb/test/API/functionalities/disassembler-variables/regs_fp_params.s b/lldb/test/API/functionalities/disassembler-variables/regs_fp_params.s
index 502ab151e0c5b..86863d4902357 100644
--- a/lldb/test/API/functionalities/disassembler-variables/regs_fp_params.s
+++ b/lldb/test/API/functionalities/disassembler-variables/regs_fp_params.s
@@ -5,6 +5,7 @@
 *   return a + b + c + d + e + f;
 * }*/
 	.file	"regs_fp_params.c"
+	.att_syntax
 	.text
 	.globl	regs_fp_params                  # -- Begin function regs_fp_params
 	.p2align	4
diff --git a/lldb/test/API/functionalities/disassembler-variables/regs_int_params.s b/lldb/test/API/functionalities/disassembler-variables/regs_int_params.s
index 0b2a60e2b4d5f..c44e3c3d85558 100644
--- a/lldb/test/API/functionalities/disassembler-variables/regs_int_params.s
+++ b/lldb/test/API/functionalities/disassembler-variables/regs_int_params.s
@@ -8,6 +8,7 @@
 * }
 */
 	.file	"regs_int_params.c"
+	.att_syntax
 	.text
 	.globl	regs_int_params                 # -- Begin function regs_int_params
 	.p2align	4
diff --git a/lldb/test/API/functionalities/disassembler-variables/regs_mixed_params.s b/lldb/test/API/functionalities/disassembler-variables/regs_mixed_params.s
index 691180b42f249..1c25af1f570ee 100644
--- a/lldb/test/API/functionalities/disassembler-variables/regs_mixed_params.s
+++ b/lldb/test/API/functionalities/disassembler-variables/regs_mixed_params.s
@@ -11,6 +11,7 @@
 */
 	.file	"regs_mixed_params.c"
 	.file	0 "." "regs_mixed_params.c" md5 0x73c4bda40238ae460aaecb3a6a2603cf
+	.att_syntax
 	.text
 	.globl	regs_mixed_params               # -- Begin function regs_mixed_params
 	.p2align	4
diff --git a/lldb/test/API/functionalities/disassembler-variables/seed_reg_const_undef.s b/lldb/test/API/functionalities/disassembler-variables/seed_reg_const_undef.s
index f85b8a712cbb2..4e3d64d57cd13 100644
--- a/lldb/test/API/functionalities/disassembler-variables/seed_reg_const_undef.s
+++ b/lldb/test/API/functionalities/disassembler-variables/seed_reg_const_undef.s
@@ -10,6 +10,7 @@
 */
 
 	.file	"seed_reg_const_undef.c"
+	.att_syntax
 	.text
 	.globl	main                            # -- Begin function main
 	.p2align	4
diff --git a/lldb/test/Shell/SymbolFile/DWARF/x86/DW_TAG_GNU_call_site-DW_AT_low_pc.s b/lldb/test/Shell/SymbolFile/DWARF/x86/DW_TAG_GNU_call_site-DW_AT_low_pc.s
index c6e5ccda5f2ef..24a64bdd5aa67 100644
--- a/lldb/test/Shell/SymbolFile/DWARF/x86/DW_TAG_GNU_call_site-DW_AT_low_pc.s
+++ b/lldb/test/Shell/SymbolFile/DWARF/x86/DW_TAG_GNU_call_site-DW_AT_low_pc.s
@@ -27,6 +27,7 @@
 #   return 0;
 # }
 
+	.att_syntax
 	.text
 .Ltext0:
 	.type	b, @function
diff --git a/lldb/test/Shell/SymbolFile/DWARF/x86/DW_TAG_variable-DW_AT_decl_file-DW_AT_abstract_origin-crosscu1.s b/lldb/test/Shell/SymbolFile/DWARF/x86/DW_TAG_variable-DW_AT_decl_file-DW_AT_abstract_origin-crosscu1.s
index e64cd176c6302..7c583f6bf59c4 100644
--- a/lldb/test/Shell/SymbolFile/DWARF/x86/DW_TAG_variable-DW_AT_decl_file-DW_AT_abstract_origin-crosscu1.s
+++ b/lldb/test/Shell/SymbolFile/DWARF/x86/DW_TAG_variable-DW_AT_decl_file-DW_AT_abstract_origin-crosscu1.s
@@ -24,6 +24,7 @@
 # CHECK: inlinevar.h:2: (int) var = {{.*}}
 # Unfixed LLDB did show only: (int) var = {{.*}}
 
+	.att_syntax
 	.text
 	.file	"inlinevar1.c"
 	.file	1 "" "./inlinevarother.h"
diff --git a/lldb/test/Shell/SymbolFile/DWARF/x86/Inputs/DW_TAG_variable-DW_AT_decl_file-DW_AT_abstract_origin-crosscu2.s b/lldb/test/Shell/SymbolFile/DWARF/x86/Inputs/DW_TAG_variable-DW_AT_decl_file-DW_AT_abstract_origin-crosscu2.s
index 6a8dfa3eb63f3..6758a900f9b90 100644
--- a/lldb/test/Shell/SymbolFile/DWARF/x86/Inputs/DW_TAG_variable-DW_AT_decl_file-DW_AT_abstract_origin-crosscu2.s
+++ b/lldb/test/Shell/SymbolFile/DWARF/x86/Inputs/DW_TAG_variable-DW_AT_decl_file-DW_AT_abstract_origin-crosscu2.s
@@ -1,3 +1,4 @@
+	.att_syntax
 	.text
 	.file	"inlinevar2.c"
 	.globl	other                       # -- Begin function other
diff --git a/lldb/test/Shell/Unwind/Inputs/basic-block-sections-with-dwarf.s b/lldb/test/Shell/Unwind/Inputs/basic-block-sections-with-dwarf.s
index a7b5431a7afaf..d89366c15eca9 100644
--- a/lldb/test/Shell/Unwind/Inputs/basic-block-sections-with-dwarf.s
+++ b/lldb/test/Shell/Unwind/Inputs/basic-block-sections-with-dwarf.s
@@ -8,6 +8,7 @@
 # using the frame pointer register and the are deliberately adjusting the stack
 # pointer to test that we're using the correct unwind row.
 
+        .att_syntax
         .text
 
         .type   baz,@function
diff --git a/lldb/test/Shell/Unwind/Inputs/eh-frame-augment-noop.s b/lldb/test/Shell/Unwind/Inputs/eh-frame-augment-noop.s
index 2bcf534f04fcf..cb2f8358bac9b 100644
--- a/lldb/test/Shell/Unwind/Inputs/eh-frame-augment-noop.s
+++ b/lldb/test/Shell/Unwind/Inputs/eh-frame-augment-noop.s
@@ -2,6 +2,7 @@
 # augmentation machinery should detect that no augmentation is needed and use
 # eh_frame directly.
 
+        .att_syntax
         .text
         .globl  foo
 foo:
diff --git a/lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind-abort.s b/lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind-abort.s
index 95099ce42d3f5..670c97e5dd0bf 100644
--- a/lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind-abort.s
+++ b/lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind-abort.s
@@ -1,3 +1,4 @@
+        .att_syntax
         .text
         .globl  asm_main
 asm_main:
diff --git a/lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind-val-offset.s b/lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind-val-offset.s
index 273921cc9c549..2ec991033e262 100644
--- a/lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind-val-offset.s
+++ b/lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind-val-offset.s
@@ -1,3 +1,4 @@
+        .att_syntax
         .text
         .globl  bar
 bar:
diff --git a/lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind.s b/lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind.s
index d83551483dd31..dd0b5de7004df 100644
--- a/lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind.s
+++ b/lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind.s
@@ -1,3 +1,4 @@
+        .att_syntax
         .text
         .globl  bar
 bar:
diff --git a/lldb/test/Shell/Unwind/Inputs/eh-frame-small-fde.s b/lldb/test/Shell/Unwind/Inputs/eh-frame-small-fde.s
index 29decefad5e51..71782601b3c53 100644
--- a/lldb/test/Shell/Unwind/Inputs/eh-frame-small-fde.s
+++ b/lldb/test/Shell/Unwind/Inputs/eh-frame-small-fde.s
@@ -1,3 +1,4 @@
+        .att_syntax
         .text
 
         .type   bar, @function
diff --git a/lldb/test/Shell/Unwind/Inputs/prefer-debug-over-eh-frame.s b/lldb/test/Shell/Unwind/Inputs/prefer-debug-over-eh-frame.s
index c9b7a785c3410..29f65fe4afbc2 100644
--- a/lldb/test/Shell/Unwind/Inputs/prefer-debug-over-eh-frame.s
+++ b/lldb/test/Shell/Unwind/Inputs/prefer-debug-over-eh-frame.s
@@ -1,3 +1,4 @@
+        .att_syntax
         .cfi_sections .eh_frame, .debug_frame
         .text
         .globl  bar
diff --git a/lldb/test/Shell/Unwind/Inputs/thread-step-out-ret-addr-check.s b/lldb/test/Shell/Unwind/Inputs/thread-step-out-ret-addr-check.s
index dd4453c64b88a..1ef46bd5d2460 100644
--- a/lldb/test/Shell/Unwind/Inputs/thread-step-out-ret-addr-check.s
+++ b/lldb/test/Shell/Unwind/Inputs/thread-step-out-ret-addr-check.s
@@ -1,3 +1,4 @@
+        .att_syntax
         .text
         .globl  asm_main
 asm_main:
diff --git a/lldb/test/Shell/Unwind/Inputs/trap_frame_sym_ctx.s b/lldb/test/Shell/Unwind/Inputs/trap_frame_sym_ctx.s
index 50ede2d34d38d..f35a60b7e809e 100644
--- a/lldb/test/Shell/Unwind/Inputs/trap_frame_sym_ctx.s
+++ b/lldb/test/Shell/Unwind/Inputs/trap_frame_sym_ctx.s
@@ -1,3 +1,4 @@
+        .att_syntax
         .text
         .globl  bar
 bar:
diff --git a/lldb/test/Shell/Unwind/Inputs/unwind-plan-dwarf-dump.s b/lldb/test/Shell/Unwind/Inputs/unwind-plan-dwarf-dump.s
index 6030affd09d20..d3ec4fd8fa41d 100644
--- a/lldb/test/Shell/Unwind/Inputs/unwind-plan-dwarf-dump.s
+++ b/lldb/test/Shell/Unwind/Inputs/unwind-plan-dwarf-dump.s
@@ -1,3 +1,4 @@
+        .att_syntax
         .text
         .globl  main
         .type   main, @function

@tambry
Copy link
Contributor Author

tambry commented Nov 18, 2025

Gentle ping.

@JDevlieghere
Copy link
Member

Presumably these tests are all hand-written assembly, and not something generated by the compiler and checked in? If it's the latter, we should find a way to prevent this from regressing. Is there a public facing bot that builds with -mllvm -x86-asm-syntax=intel?

@tambry
Copy link
Contributor Author

tambry commented Nov 18, 2025

Half are generated using a compiler per the comments and the rest of unknown provenance. I'd wager the rest are also mostly compiler generated and then hand reduced and modified but lack the comments mentioning such. #167234 would/will solve the issue going forward for future compiler-assisted generated testcases unless someone takes care to remove the directive.

There are no bots running this configuration. An alternative would be passing -mllvm -x86-asm-syntax=att for all invocations in the local Lit config but I find that a bit uglier and it obscures the intent somewhat.

I don't imagine there are many cases making it into LLVM either as overall there are a few 10s of cases total across LLVM that gave gathered over the the few decades. So it might be just not worth bothering and me fixing these once a year or so when they come up (if #167234 doesn't get merged and reduce even that trickle).

@tambry tambry force-pushed the lldb_att_asm_syntax branch from 10f0383 to 338656d Compare November 20, 2025 12:35
@tambry
Copy link
Contributor Author

tambry commented Nov 20, 2025

I've pushed a change similar to #167234 that explicitly passes the flag to avoid accidental reintroduction of issues.
I've kept the changes making the syntax explicit though as that seems like a good practice. Let me know if you'd prefer to drop these now.

@github-actions
Copy link

github-actions bot commented Nov 20, 2025

🐧 Linux x64 Test Results

  • 33163 tests passed
  • 494 tests skipped

Implementation files using the Intel syntax typically explicitly specify it.
Do the same for the few files using AT&T syntax.

This enables building LLVM with `-mllvm -x86-asm-syntax=intel` in one's Clang config files
(i.e. a global preference for Intel syntax).
@tambry tambry force-pushed the lldb_att_asm_syntax branch from 338656d to b7337a8 Compare November 20, 2025 12:45
@tambry
Copy link
Contributor Author

tambry commented Dec 2, 2025

@JDevlieghere Gentle ping.

@tambry
Copy link
Contributor Author

tambry commented Dec 14, 2025

@JDevlieghere Ping.

Copy link
Member

@JDevlieghere JDevlieghere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the ping, apologies for letting this fall through the cracks. LGTM.

@tambry tambry merged commit 423919d into llvm:main Dec 14, 2025
10 checks passed
@tambry tambry deleted the lldb_att_asm_syntax branch December 14, 2025 21:54
@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 14, 2025

LLVM Buildbot has detected a new failure on builder lldb-remote-linux-win running on as-builder-10 while building lldb at step 17 "test-check-lldb-api".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/197/builds/11872

Here is the relevant piece of the build log for the reference
Step 17 (test-check-lldb-api) failure: Test just built components: check-lldb-api completed (failure)
...
2.340 [3/1/7]Performing build step for 'runtimes-aarch0.544 [0/1/1]Generating C:/buildbot/as-builder-10/lldb-x-aarch64/build/compile_commands.json
-- Testing: 1337 tests, 8 workers --
UNSUPPORTED: lldb-api :: api/check_public_api_headers/TestPublicAPIHeaders.py (1 of 1337)
UNSUPPORTED: lldb-api :: api/multithreaded/TestMultithreaded.py (2 of 1337)
UNSUPPORTED: lldb-api :: android/platform/TestDefaultCacheLineSize.py (3 of 1337)
UNSUPPORTED: lldb-api :: api/multiple-debuggers/TestMultipleDebuggers.py (4 of 1337)
UNSUPPORTED: lldb-api :: api/multiple-targets/TestMultipleTargets.py (5 of 1337)
PASS: lldb-api :: api/log/TestAPILog.py (6 of 1337)
PASS: lldb-api :: api/command-return-object/TestSBCommandReturnObject.py (7 of 1337)
UNRESOLVED: lldb-api :: api/listeners/TestListener.py (8 of 1337)
******************** TEST 'lldb-api :: api/listeners/TestListener.py' FAILED ********************
Script:
--
C:/Python312/python.exe C:/buildbot/as-builder-10/lldb-x-aarch64/llvm-project/lldb\test\API\dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=C:/buildbot/as-builder-10/lldb-x-aarch64/build/./lib --env LLVM_INCLUDE_DIR=C:/buildbot/as-builder-10/lldb-x-aarch64/build/include --env LLVM_TOOLS_DIR=C:/buildbot/as-builder-10/lldb-x-aarch64/build/./bin --arch aarch64 --build-dir C:/buildbot/as-builder-10/lldb-x-aarch64/build/lldb-test-build.noindex --lldb-module-cache-dir C:/buildbot/as-builder-10/lldb-x-aarch64/build/lldb-test-build.noindex/module-cache-lldb\lldb-api --clang-module-cache-dir C:/buildbot/as-builder-10/lldb-x-aarch64/build/lldb-test-build.noindex/module-cache-clang\lldb-api --executable C:/buildbot/as-builder-10/lldb-x-aarch64/build/./bin/lldb.exe --compiler C:/buildbot/as-builder-10/lldb-x-aarch64/build/./bin/clang.exe --dsymutil C:/buildbot/as-builder-10/lldb-x-aarch64/build/./bin/dsymutil.exe --make C:/ninja/make.exe --llvm-tools-dir C:/buildbot/as-builder-10/lldb-x-aarch64/build/./bin --lldb-obj-root C:/buildbot/as-builder-10/lldb-x-aarch64/build/tools/lldb --lldb-libs-dir C:/buildbot/as-builder-10/lldb-x-aarch64/build/./lib --cmake-build-type Release --platform-url connect://jetson-agx-0086.lab.llvm.org:1234 --platform-working-dir /home/ubuntu/lldb-tests --sysroot c:/buildbot/fs/jetson-agx-ubuntu --env ARCH_CFLAGS=-mcpu=cortex-a78 --platform-name remote-linux --skip-category=lldb-server C:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\lldb\test\API\api\listeners -p TestListener.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 22.0.0git (https://github.com/llvm/llvm-project.git revision 423919d31f4b55f22b09cd5066534f7c91e71d4b)
  clang revision 423919d31f4b55f22b09cd5066534f7c91e71d4b
  llvm revision 423919d31f4b55f22b09cd5066534f7c91e71d4b
Setting up remote platform 'remote-linux'

Connecting to remote platform 'remote-linux' at 'connect://jetson-agx-0086.lab.llvm.org:1234'...

Connected.

Setting remote platform working directory to '/home/ubuntu/lldb-tests'...

Skipping the following test categories: lldb-server, libc++, msvcstl, dsym, pdb, gmodules, debugserver, objc, lldb-dap


--
Command Output (stderr):
--
FAIL: LLDB (C:\buildbot\as-builder-10\lldb-x-aarch64\build\bin\clang.exe-aarch64) :: test_clearing_listener (TestListener.ListenToModuleLoadedEvents.test_clearing_listener)

FAIL: LLDB (C:\buildbot\as-builder-10\lldb-x-aarch64\build\bin\clang.exe-aarch64) :: test_receiving_breakpoint_added_from_debugger (TestListener.ListenToModuleLoadedEvents.test_receiving_breakpoint_added_from_debugger)

FAIL: LLDB (C:\buildbot\as-builder-10\lldb-x-aarch64\build\bin\clang.exe-aarch64) :: test_recieving_breakpoint_added_from_target (TestListener.ListenToModuleLoadedEvents.test_recieving_breakpoint_added_from_target)

======================================================================

ERROR: test_clearing_listener (TestListener.ListenToModuleLoadedEvents.test_clearing_listener)

   Make sure we also clear listerers from the hook up for event type manager

----------------------------------------------------------------------
Step 18 (test-check-lldb-shell) failure: Test just built components: check-lldb-shell completed (failure)
******************** TEST 'lldb-shell :: Commands/command-statistics-dump.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 10
c:\buildbot\as-builder-10\lldb-x-aarch64\build\bin\clang.exe --target=specify-a-target-or-use-a-_host-substitution --target=aarch64-unknown-linux-gnu -fmodules-cache-path=C:/buildbot/as-builder-10/lldb-x-aarch64/build/lldb-test-build.noindex/module-cache-clang\lldb-shell -mllvm -x86-asm-syntax=att --sysroot=c:/buildbot/fs/jetson-agx-ubuntu -LC:/buildbot/as-builder-10/lldb-x-aarch64/build/./lib/aarch64-unknown-linux-gnu -lc++ -g C:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\lldb\test\Shell\Commands/Inputs/main.c -o C:\buildbot\as-builder-10\lldb-x-aarch64\build\tools\lldb\test\Shell\Commands\Output\command-statistics-dump.test.tmp-main.exe
# executed command: 'c:\buildbot\as-builder-10\lldb-x-aarch64\build\bin\clang.exe' --target=specify-a-target-or-use-a-_host-substitution --target=aarch64-unknown-linux-gnu '-fmodules-cache-path=C:/buildbot/as-builder-10/lldb-x-aarch64/build/lldb-test-build.noindex/module-cache-clang\lldb-shell' -mllvm -x86-asm-syntax=att --sysroot=c:/buildbot/fs/jetson-agx-ubuntu -LC:/buildbot/as-builder-10/lldb-x-aarch64/build/./lib/aarch64-unknown-linux-gnu -lc++ -g 'C:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\lldb\test\Shell\Commands/Inputs/main.c' -o 'C:\buildbot\as-builder-10\lldb-x-aarch64\build\tools\lldb\test\Shell\Commands\Output\command-statistics-dump.test.tmp-main.exe'
# .---command stderr------------
# | clang: warning: argument unused during compilation: '-fmodules-cache-path=C:/buildbot/as-builder-10/lldb-x-aarch64/build/lldb-test-build.noindex/module-cache-clang\lldb-shell' [-Wunused-command-line-argument]
# | clang (LLVM option parsing): Unknown command line argument '-x86-asm-syntax=att'.  Try: 'clang (LLVM option parsing) --help'
# | clang (LLVM option parsing): Did you mean '--asan-stack=att'?
# `-----------------------------
# error: command failed with exit status: 1

--

********************


tambry added a commit to tambry/llvm-project that referenced this pull request Dec 14, 2025
…ly (llvm#166770)"

Flag changes reverted as those require the X86 target to be enabled.
Don't have time to test fixes as I need to go to sleep so will revert for now.

This reverts commit 423919d.
tambry added a commit to tambry/llvm-project that referenced this pull request Dec 14, 2025
…ly (llvm#166770)"

Flag changes reverted as those require the X86 target to be enabled.
Don't have time to test fixes as I need to go to sleep so will revert for now.

Reverts: 423919d.
tambry added a commit to tambry/llvm-project that referenced this pull request Dec 14, 2025
…ly (llvm#166770)"

Flag changes reverted as those require the X86 target to be enabled.
Don't have time to test fixes as I need to go to sleep so will revert for now.

Reverts: 423919d
tambry added a commit that referenced this pull request Dec 14, 2025
…ly (#166770)" (#172233)

Flag changes reverted as those require the X86 target to be enabled.  
Don't have time to test fixes as I need to go to sleep so will revert for now.

Reverts: 423919d
anonymouspc pushed a commit to anonymouspc/llvm that referenced this pull request Dec 15, 2025
Implementation files using the Intel syntax typically explicitly specify it.
Do the same for the few files using AT&T syntax.

This enables building LLVM with `-mllvm -x86-asm-syntax=intel` in one's Clang config files
(i.e. a global preference for Intel syntax).
anonymouspc pushed a commit to anonymouspc/llvm that referenced this pull request Dec 15, 2025
…ly (llvm#166770)" (llvm#172233)

Flag changes reverted as those require the X86 target to be enabled.  
Don't have time to test fixes as I need to go to sleep so will revert for now.

Reverts: 423919d
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.

4 participants