[llvm] 6e6c61d - [InstCombine] Add explicit data layout to test
    Nikita Popov via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jun 30 04:09:27 PDT 2025
    
    
  
Author: Nikita Popov
Date: 2025-06-30T13:09:18+02:00
New Revision: 6e6c61d696c9ead7deb0b05d3643bf5c70883aa3
URL: https://github.com/llvm/llvm-project/commit/6e6c61d696c9ead7deb0b05d3643bf5c70883aa3
DIFF: https://github.com/llvm/llvm-project/commit/6e6c61d696c9ead7deb0b05d3643bf5c70883aa3.diff
LOG: [InstCombine] Add explicit data layout to test
To avoid the dependence on the SystemZ target. What is relevant here
is a data layout with preferred alignment for i8.
Added: 
    
Modified: 
    llvm/test/Transforms/InstCombine/SystemZ/printf-opt-alignment.ll
Removed: 
    
################################################################################
diff  --git a/llvm/test/Transforms/InstCombine/SystemZ/printf-opt-alignment.ll b/llvm/test/Transforms/InstCombine/SystemZ/printf-opt-alignment.ll
index d01e759dd86a2..9148f9c6a6c40 100644
--- a/llvm/test/Transforms/InstCombine/SystemZ/printf-opt-alignment.ll
+++ b/llvm/test/Transforms/InstCombine/SystemZ/printf-opt-alignment.ll
@@ -1,8 +1,10 @@
-; RUN: opt < %s --passes=instcombine -S -mtriple=systemz-unknown | FileCheck %s
+; RUN: opt < %s --passes=instcombine -S | FileCheck %s
 ;
 ; Check that string replacements inserted by the instcombiner are properly aligned.
 ; The specific case checked replaces `printf("foo\n")` with `puts("foo")`
 
+target datalayout = "i8:8:16"
+
 @msg1 = constant [17 x i8] c"Alignment Check\0A\00", align 2
 ; CHECK: c"Alignment Check\00", align 2
 
        
    
    
More information about the llvm-commits
mailing list