[llvm] 428af86 - [DirectX] Update test after `opt` learned to infer datalayout (#70726)

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 30 14:04:19 PDT 2023


Author: Justin Bogner
Date: 2023-10-30T14:04:15-07:00
New Revision: 428af867d89eb28b09e80c6826c4c6daad1ba8cc

URL: https://github.com/llvm/llvm-project/commit/428af867d89eb28b09e80c6826c4c6daad1ba8cc
DIFF: https://github.com/llvm/llvm-project/commit/428af867d89eb28b09e80c6826c4c6daad1ba8cc.diff

LOG: [DirectX] Update test after `opt` learned to infer datalayout (#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.

Added: 
    

Modified: 
    llvm/test/CodeGen/DirectX/typed_ptr.ll

Removed: 
    


################################################################################
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