Skip to content

Commit 4f86be7

Browse files
minansyswsmoses
authored andcommitted
update
1 parent bfc173e commit 4f86be7

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

enzyme/test/Enzyme/ReverseMode/loosetypes_umax.ll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: if [ %llvmver -lt 16 ]; then %opt < %s %loadEnzyme -enzyme-preopt=false -enzyme -mem2reg -instsimplify -S -enzyme-loose-types | FileCheck %s; fi
2-
; RUN: if [ %llvmver -ne 16 ]; then %opt < %s %newLoadEnzyme -enzyme-preopt=false -passes="enzyme,function(mem2reg,instsimplify)" -S -enzyme-loose-types | FileCheck %s; fi
2+
; RUN: if [ %llvmver -ge 15 ]; then %opt < %s %newLoadEnzyme -enzyme-preopt=false -passes="enzyme,function(mem2reg,instsimplify)" -S -enzyme-loose-types | FileCheck %s; fi
33
;
44
; Test that reverse-mode AD with -enzyme-loose-types handles @llvm.umax.i32
55
; intrinsic calls on integer values without crashing in invertPointerM.
@@ -74,11 +74,11 @@ declare void @__enzyme_autodiff(...)
7474
; CHECK-SAME: i32 %face_idx, ptr noalias
7575
; CHECK-SAME: %nbr)
7676

77-
; Verify the primal block computes both the original and shadow i32 umax values.
78-
; CHECK: %new_flag = tail call i32 @llvm.umax.i32(i32 %old_flag, i32 %flag)
79-
; CHECK-NEXT: %[[NEW_FLAG_IP:.+]] = {{(tail )?}}call i32 @llvm.umax.i32(i32 %{{.+}}, i32 %{{.+}})
80-
; CHECK-NEXT: store i32 %[[NEW_FLAG_IP]], ptr %"flags_elem'ipg"
81-
; CHECK-NEXT: store i32 %new_flag, ptr %flags_elem
77+
; Verify the primal block no longer uses the old zero-shadow fallback.
78+
; CHECK: %new_flag = {{(tail )?}}call i32 @llvm.umax.i32(i32 %old_flag, i32 %flag)
79+
; CHECK-NOT: store i32 0, ptr %"flags_elem'ipg"
80+
; CHECK: store i32 {{.+}}, ptr %"flags_elem'ipg"
81+
; CHECK: store i32 %new_flag, ptr %flags_elem
8282

8383
; Verify the reverse block correctly propagates float derivatives
8484
; CHECK: invertentry:

0 commit comments

Comments
 (0)