[llvm] [MC] Add .loc_label instruction (PR #99710)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 19 17:50:34 PDT 2024


================
@@ -0,0 +1,101 @@
+// Verify that the .loc_label instruction resets the line sequence and generates
+// the requested label at the correct position in the line stream
+
+// RUN: llvm-mc -filetype obj -triple x86_64-linux-elf %s -o %t.o
----------------
MaskRay wrote:

Just `-triple x86_64` to make it clear that this is generic ELF behavior, not specific to Linux.

linux-elf is kinda incorrect triple. When the os is linux, "elf" should not be used.

https://github.com/llvm/llvm-project/pull/99710


More information about the llvm-commits mailing list