1 ; RUN: llvm-reduce --abort-on-invalid-reduction --delta-passes=instructions --test FileCheck --test-arg --check-prefixes=CHECK,INTERESTING --test-arg %s --test-arg --input-file %s -o %t
2 ; RUN: FileCheck -check-prefixes=CHECK,RESULT %s < %t
4 ; CHECK-LABEL: define void @tokens(
5 ; INTERESTING: store i32 0
6 ; INTERESTING: call void @llvm.token.consumer
8 ; RESULT: %token = call token @llvm.token.producer()
9 ; RESULT-NEXT: store i32 0, ptr %ptr, align 4
10 ; RESULT-NEXT: call void @llvm.token.consumer(token %token)
11 ; RESULT-NEXT: ret void
12 define void @tokens(ptr %ptr) {
13 %token = call token @llvm.token.producer()
15 call void @llvm.token.consumer(token %token)
20 declare token @llvm.token.producer()
21 declare void @llvm.token.consumer(token)