[llvm] [DirectX] Update test after `opt` learned to infer datalayout (PR #70726)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 30 13:57:47 PDT 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-directx
Author: Justin Bogner (bogner)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/70726.diff
1 Files Affected:
- (modified) llvm/test/CodeGen/DirectX/typed_ptr.ll (+2-1)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/70726
More information about the llvm-commits
mailing list