[llvm-branch-commits] MC: Add directive for specifying a section's preferred alignment. (PR #150151)

Fangrui Song via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jan 19 20:06:51 PST 2026


================
@@ -0,0 +1,5 @@
+// RUN: not llvm-mc -filetype=asm -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
+
+.section .text.f1,"ax", at progbits
+// CHECK: error: alignment must be a power of 2
----------------
MaskRay wrote:

Should also check the file and line number


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


More information about the llvm-branch-commits mailing list