Skip to content

Commit 3e4a6f5

Browse files
committed
[DirectX] Fix i8 alignment in datalayout of lit test
An llc lit test used overaligned i8, apparently originating from the old DXIL data layout. The new DXIL data layout uses naturally aligned i8. llc ignores the data layout of a module and instead sets the data layout based on the target. Change the data layout string in the test to match that target-derived data layout.
1 parent 986029c commit 3e4a6f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/test/tools/dxil-dis/opaque-value_as_metadata.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: llc --filetype=obj %s -o - 2>&1 | dxil-dis -o - | FileCheck %s
2-
target datalayout = "e-m:e-p:32:32-i1:32-i8:32-i16:32-i32:32-i64:64-f16:32-f32:32-f64:64-n8:16:32:64"
2+
target datalayout = "e-m:e-p:32:32-i1:32-i8:8-i16:16-i32:32-i64:64-f16:16-f32:32-f64:64-n8:16:32:64"
33
target triple = "dxil-unknown-shadermodel6.7-library"
44

55
%"$Globals" = type { float }

0 commit comments

Comments
 (0)