[llvm] Global string alignment (PR #142346)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 30 05:30:40 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-nvptx64-nvidia-ubuntu` running on `as-builder-7` while building `llvm` at step 6 "test-build-unified-tree-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/160/builds/20159

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstCombine/SystemZ/printf-opt-alignment.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/bin/opt < /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/InstCombine/SystemZ/printf-opt-alignment.ll --passes=instcombine -S -mtriple=systemz-unknown | /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/InstCombine/SystemZ/printf-opt-alignment.ll # RUN: at line 1
+ /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/bin/opt --passes=instcombine -S -mtriple=systemz-unknown
+ /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/InstCombine/SystemZ/printf-opt-alignment.ll
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/bin/opt: warning: failed to infer data layout: unable to get target for 'systemz-unknown', see --version and --triple.
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/bin/opt: WARNING: failed to create target machine for 'systemz-unknown': unable to get target for 'systemz-unknown', see --version and --triple.
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/InstCombine/SystemZ/printf-opt-alignment.ll:7:10: error: CHECK: expected string not found in input
; CHECK: c"Alignment Check\00", align 2
         ^
<stdin>:1:1: note: scanning from here
; ModuleID = '<stdin>'
^
<stdin>:6:48: note: possible intended match here
@str = private unnamed_addr constant [16 x i8] c"Alignment Check\00", align 1
                                               ^

Input file: <stdin>
Check file: /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/InstCombine/SystemZ/printf-opt-alignment.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           1: ; ModuleID = '<stdin>' 
check:7'0     X~~~~~~~~~~~~~~~~~~~~~~ error: no match found
           2: source_filename = "<stdin>" 
check:7'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           3: target triple = "systemz-unknown" 
check:7'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           4:  
check:7'0     ~
           5: @msg1 = constant [17 x i8] c"Alignment Check\0A\00", align 2 
check:7'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           6: @str = private unnamed_addr constant [16 x i8] c"Alignment Check\00", align 1 
check:7'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:7'1                                                    ?                               possible intended match
           7:  
check:7'0     ~
           8: define dso_local void @foo() { 
check:7'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           9:  %puts = call i32 @puts(ptr nonnull dereferenceable(1) @str) 
check:7'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          10:  ret void 
check:7'0     ~~~~~~~~~~
          11: } 
check:7'0     ~~
...

```

</details>

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


More information about the llvm-commits mailing list