about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Woodtli <lukas.woodtli@husqvarnagroup.com>2025-02-24 11:17:49 +0100
committerLukas Woodtli <lukas.woodtli@husqvarnagroup.com>2025-02-24 11:58:38 +0100
commit264f2c6699552ea3c45b164e098a0cb45b2c5392 (patch)
treecc0075bc7a3c2f0c5530ad974c8322f8936d3d49
parente0be1a02626abef2878cb7f4aaef7ae409477112 (diff)
downloadrust-264f2c6699552ea3c45b164e098a0cb45b2c5392.tar.gz
rust-264f2c6699552ea3c45b164e098a0cb45b2c5392.zip
DWARF mixed versions with LTO on MIPS
On MIPS the DWARF version is stored in 2 bytes with the `.2byte`
assembler directive.
-rw-r--r--tests/assembly/dwarf-mixed-versions-lto.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/assembly/dwarf-mixed-versions-lto.rs b/tests/assembly/dwarf-mixed-versions-lto.rs
index 5b8e5ff4f4a..f1fc0814c9d 100644
--- a/tests/assembly/dwarf-mixed-versions-lto.rs
+++ b/tests/assembly/dwarf-mixed-versions-lto.rs
@@ -1,5 +1,6 @@
 // This test ensures that if LTO occurs between crates with different DWARF versions, we
 // will choose the highest DWARF version for the final binary. This matches Clang's behavior.
+// Note: `.2byte` directive is used on MIPS.
 
 //@ only-linux
 //@ aux-build:dwarf-mixed-versions-lto-aux.rs
@@ -14,6 +15,6 @@ fn main() {
 }
 
 // CHECK: .section .debug_info
-// CHECK-NOT: {{\.(short|hword)}} 2
-// CHECK-NOT: {{\.(short|hword)}} 4
-// CHECK: {{\.(short|hword)}} 5
+// CHECK-NOT: {{\.(short|hword|2byte)}} 2
+// CHECK-NOT: {{\.(short|hword|2byte)}} 4
+// CHECK: {{\.(short|hword|2byte)}} 5