[llvm] [DirectX] Update test after `opt` learned to infer datalayout (PR #70726)
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 30 13:56:33 PDT 2023
https://github.com/bogner created https://github.com/llvm/llvm-project/pull/70726
Since e39f6c1844fa "[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.
>From f809a212def563a74f337720ed5b917c9f1232f5 Mon Sep 17 00:00:00 2001
From: Justin Bogner <mail at justinbogner.com>
Date: Mon, 30 Oct 2023 13:53:25 -0700
Subject: [PATCH] [DirectX] Update test after `opt` learned to infer datalayout
Since e39f6c1844fa "[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.
---
llvm/test/CodeGen/DirectX/typed_ptr.ll | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/llvm/test/CodeGen/DirectX/typed_ptr.ll b/llvm/test/CodeGen/DirectX/typed_ptr.ll
index 2975d85b9c96442..5453e87651dd725 100644
--- a/llvm/test/CodeGen/DirectX/typed_ptr.ll
+++ b/llvm/test/CodeGen/DirectX/typed_ptr.ll
@@ -1,3 +1,4 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 3
; RUN: opt -S -dxil-prepare < %s | FileCheck %s
target triple = "dxil-unknown-unknown"
@@ -7,7 +8,7 @@ target triple = "dxil-unknown-unknown"
define i64 @test(i64* %p) {
; CHECK-LABEL: define i64 @test(
; CHECK-SAME: ptr [[P:%.*]]) {
-; CHECK-NEXT: [[V:%.*]] = load i64, ptr [[P]], align 4
+; CHECK-NEXT: [[V:%.*]] = load i64, ptr [[P]], align 8
; CHECK-NEXT: ret i64 [[V]]
;
%v = load i64, i64* %p
More information about the llvm-commits
mailing list