Skip to content

Commit 428af86

Browse files
authored
[DirectX] Update test after opt learned to infer datalayout (#70726)
Since e39f6c1 "[opt] Infer DataLayout from triple if not specified", this test (correctly) emits a load of an i64 with 8 byte alignment, rather than with 4 byte alignment.
1 parent 8ca565c commit 428af86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/test/CodeGen/DirectX/typed_ptr.ll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 3
12
; RUN: opt -S -dxil-prepare < %s | FileCheck %s
23
target triple = "dxil-unknown-unknown"
34

@@ -7,7 +8,7 @@ target triple = "dxil-unknown-unknown"
78
define i64 @test(i64* %p) {
89
; CHECK-LABEL: define i64 @test(
910
; CHECK-SAME: ptr [[P:%.*]]) {
10-
; CHECK-NEXT: [[V:%.*]] = load i64, ptr [[P]], align 4
11+
; CHECK-NEXT: [[V:%.*]] = load i64, ptr [[P]], align 8
1112
; CHECK-NEXT: ret i64 [[V]]
1213
;
1314
%v = load i64, i64* %p

0 commit comments

Comments
 (0)