Skip to content

Commit

Permalink
[ObjCArcOpts] Regenerate test checks (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Jan 25, 2022
1 parent 3e2ae92 commit 4f4d071
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions llvm/test/Transforms/ObjCARC/weak.ll
@@ -1,3 +1,4 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -objc-arc -S < %s | FileCheck %s

declare i8* @llvm.objc.initWeak(i8**, i8*)
Expand All @@ -10,27 +11,29 @@ declare void @llvm.objc.copyWeak(i8**, i8**)

; If the pointer-to-weak-pointer is null, it's undefined behavior.

; CHECK-LABEL: define void @test0(
; CHECK: store i8* undef, i8** null
; CHECK: store i8* undef, i8** null
; CHECK: store i8* undef, i8** null
; CHECK: store i8* undef, i8** null
; CHECK: store i8* undef, i8** null
; CHECK: store i8* undef, i8** null
; CHECK: store i8* undef, i8** null
; CHECK: store i8* undef, i8** null
; CHECK: store i8* undef, i8** null
; CHECK: store i8* undef, i8** null
; CHECK: store i8* undef, i8** null
; CHECK: store i8* undef, i8** null
; CHECK: store i8* undef, i8** null
; CHECK: store i8* undef, i8** null
; CHECK: store i8* undef, i8** null
; CHECK: store i8* undef, i8** null
; CHECK: store i8* undef, i8** null
; CHECK: store i8* undef, i8** null
; CHECK: ret void
define void @test0(i8* %p, i8** %q) {
; CHECK-LABEL: @test0(
; CHECK-NEXT: entry:
; CHECK-NEXT: store i8* undef, i8** null, align 8
; CHECK-NEXT: store i8* undef, i8** null, align 8
; CHECK-NEXT: store i8* undef, i8** null, align 8
; CHECK-NEXT: store i8* undef, i8** null, align 8
; CHECK-NEXT: store i8* undef, i8** null, align 8
; CHECK-NEXT: store i8* undef, i8** null, align 8
; CHECK-NEXT: store i8* undef, i8** null, align 8
; CHECK-NEXT: store i8* undef, i8** null, align 8
; CHECK-NEXT: store i8* undef, i8** null, align 8
; CHECK-NEXT: store i8* undef, i8** null, align 8
; CHECK-NEXT: store i8* undef, i8** null, align 8
; CHECK-NEXT: store i8* undef, i8** null, align 8
; CHECK-NEXT: store i8* undef, i8** null, align 8
; CHECK-NEXT: store i8* undef, i8** null, align 8
; CHECK-NEXT: store i8* undef, i8** null, align 8
; CHECK-NEXT: store i8* undef, i8** null, align 8
; CHECK-NEXT: store i8* undef, i8** null, align 8
; CHECK-NEXT: store i8* undef, i8** null, align 8
; CHECK-NEXT: ret void
;
entry:
call i8* @llvm.objc.storeWeak(i8** null, i8* %p)
call i8* @llvm.objc.storeWeak(i8** undef, i8* %p)
Expand Down

0 comments on commit 4f4d071

Please sign in to comment.