Skip to content

Commit 6e6c61d

Browse files
committed
[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.
1 parent 7a3e555 commit 6e6c61d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/test/Transforms/InstCombine/SystemZ/printf-opt-alignment.ll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
; RUN: opt < %s --passes=instcombine -S -mtriple=systemz-unknown | FileCheck %s
1+
; RUN: opt < %s --passes=instcombine -S | FileCheck %s
22
;
33
; Check that string replacements inserted by the instcombiner are properly aligned.
44
; The specific case checked replaces `printf("foo\n")` with `puts("foo")`
55

6+
target datalayout = "i8:8:16"
7+
68
@msg1 = constant [17 x i8] c"Alignment Check\0A\00", align 2
79
; CHECK: c"Alignment Check\00", align 2
810

0 commit comments

Comments
 (0)