; REQUIRES: aarch64-registered-target ; For convenience, to show what is being serialized. ; RUN: opt -S -passes="print" -disable-output < %s 2>&1 | FileCheck %s --check-prefixes=SSI ; RUN: opt -module-summary %s -o %t.bc ; RUN: llvm-bcanalyzer -dump %t.bc | FileCheck %s -check-prefixes=BC ; RUN: opt -module-summary %p/Inputs/thinlto-function-summary-paramaccess.ll -o %t2.bc ; RUN: llvm-lto -thinlto -o %t %t.bc %t2.bc ; RUN: llvm-dis -o - %t.thinlto.bc | FileCheck %s --check-prefix=DCO ; Round trip it through llvm-as ; RUN: llvm-dis -o - %t.thinlto.bc | llvm-as -o - | llvm-dis -o - | FileCheck %s --check-prefix=DCO ; RUN: llvm-bcanalyzer -dump %t.thinlto.bc | FileCheck %s --check-prefix=COMBINED ; RUN: llvm-dis -o - %t.bc | FileCheck %s --check-prefix=DIS ; Round trip it through llvm-as ; RUN: llvm-dis -o - %t.bc | llvm-as -o - | llvm-dis -o - | FileCheck %s --check-prefix=DIS ; RUN: opt -thinlto-bc %s -o %t.bc ; RUN: llvm-bcanalyzer -dump %t.bc | FileCheck %s -check-prefixes=BC ; RUN: llvm-dis -o - %t.bc | FileCheck %s --check-prefix=DIS ; Round trip it through llvm-as ; RUN: llvm-dis -o - %t.bc | llvm-as -o - | llvm-dis -o - | FileCheck %s --check-prefix=DIS ; DIS: ^0 = module: (path: "{{.*}}", hash: ({{.*}})) ; DCO: ^0 = module: (path: "{{.*}}", hash: ({{.*}})) ; DCO: ^1 = module: (path: "{{.*}}", hash: ({{.*}})) ; ModuleID = 'thinlto-function-summary-paramaccess.ll' target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" target triple = "aarch64-unknown-linux" attributes #0 = { noinline sanitize_memtag "target-features"="+mte,+neon" } ; BC-LABEL: ; BC-NEXT: ; BC-NEXT: ; BC-NEXT: ; BC-NEXT: ; BC-NEXT: ; BC-NEXT: ; BC-NEXT: ; BC-NEXT: ; BC-NEXT: ; BC-NEXT: ; BC-NEXT: ; BC-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: ; COMBINED-NEXT: