Skip to content

Conversation

@ayermolo
Copy link
Contributor

This test seems to be non-determistic recently.
Changed it not to rely on offsets.

Summary:

This test seems to be non-determistic recently.
Changed it not to rely on offsets.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
@llvmbot
Copy link
Member

llvmbot commented May 19, 2025

@llvm/pr-subscribers-debuginfo

Author: Alexander Yermolovich (ayermolo)

Changes

This test seems to be non-determistic recently.
Changed it not to rely on offsets.


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

1 Files Affected:

  • (modified) llvm/test/tools/dsymutil/X86/op-convert-offset.test (+4-2)
diff --git a/llvm/test/tools/dsymutil/X86/op-convert-offset.test b/llvm/test/tools/dsymutil/X86/op-convert-offset.test
index 1a915d1170748..ee67e44b852eb 100644
--- a/llvm/test/tools/dsymutil/X86/op-convert-offset.test
+++ b/llvm/test/tools/dsymutil/X86/op-convert-offset.test
@@ -42,12 +42,14 @@ OBJ:                   DW_AT_location        (DW_OP_breg2 RCX+0, DW_OP_constu 0x
 OBJ:                   DW_AT_name    ("b")
 OBJ:                   DW_AT_type    (0x000000af "_Bool")
 
-DSYM: 0x00000084:   DW_TAG_base_type
+DSYM:               DW_TAG_compile_unit
+DSYM:               DW_TAG_compile_unit
+DSYM:               DW_TAG_base_type
 DSYM:                 DW_AT_name      ("DW_ATE_unsigned_1")
 DSYM:                 DW_AT_encoding  (DW_ATE_unsigned)
 DSYM:                 DW_AT_byte_size (0x01)
 
-DSYM: 0x0000009b:     DW_TAG_formal_parameter
+DSYM:              DW_TAG_formal_parameter
 DSYM:                   DW_AT_location        (DW_OP_breg2 RCX+0, DW_OP_constu 0xff, DW_OP_and, DW_OP_convert (0x00000084) "DW_ATE_unsigned_1", DW_OP_convert (0x00000088) "DW_ATE_unsigned_8", DW_OP_stack_value)
 DSYM:                   DW_AT_name    ("b")
 DSYM:                   DW_AT_type    ({{.*}} "_Bool")

@JDevlieghere
Copy link
Member

I'm guessing dsymutil --linker parallel is the source of the non-determinism. Regular dsymutil is deterministic.

@ayermolo ayermolo merged commit ad45031 into llvm:main May 19, 2025
11 of 13 checks passed
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