[llvm] [X86] Print 'l' section flag for SHF_X86_64_LARGE (PR #70380)

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 26 14:10:38 PDT 2023


================
@@ -16,6 +16,8 @@
 ; RUN: llc < %s -relocation-model=pic -filetype=obj -code-model=large -data-sections -o %t
 ; RUN: llvm-readelf -S %t | FileCheck %s --check-prefix=SMALL-DS
 
+; RUN: llc < %s -relocation-model=pic -filetype=asm -code-model=medium -large-data-threshold=79 -o - | FileCheck %s --check-prefix=LARGE-ASM
----------------
rnk wrote:

This is an MC code change, so the best place to test this is in MC itself. I think you can simply tests that it roundtrips. This assembly code doesn't repro the 'l' flag:
`  .section .lrodata,"al"`
--> `llvm-mc t.s -o -` -->
`        .section        .lrodata,"a", at progbits`


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


More information about the llvm-commits mailing list