1 ; RUN: opt -passes='print<structural-hash>' -disable-output %s 2>&1 | FileCheck %s
2 ; RUN: opt -passes='print<structural-hash><detailed>' -disable-output %s 2>&1 | FileCheck %s -check-prefix=DETAILED-HASH
4 ; Add a declaration so that we can test we skip it.
7 define i64 @f1(i64 %a) {
12 define i32 @f2(i32 %a) {
17 ; CHECK: Module Hash: {{([a-z0-9]{14,})}}
18 ; CHECK-NEXT: Function f1 Hash: [[F1H:([a-z0-9]{14,})]]
19 ; CHECK-NEXT: Function f2 Hash: [[F1H]]
21 ; DETAILED-HASH: Module Hash: {{([a-z0-9]{14,})}}
22 ; DETAILED-HASH-NEXT: Function f1 Hash: [[DF1H:([a-z0-9]{14,})]]
23 ; DETAILED-HASH-NOT: [[DF1H]]
24 ; DETAILED-HASH-NEXT: Function f2 Hash: {{([a-z0-9]{14,})}}