mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
d01e45a895
Summary: This change allows llvm-dis to disassemble multi-module bitcode files, including the associated module summary. Reviewers: tejohnson, pcc, mehdi_amini Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70153
47 lines
1.5 KiB
LLVM
47 lines
1.5 KiB
LLVM
; RUN: llvm-cat -o %t %s %S/Inputs/multi-module.ll
|
|
|
|
; RUN: llvm-bcanalyzer -dump %t | FileCheck --check-prefix=BCA %s
|
|
|
|
; RUN: llvm-modextract -n 0 -o - %t | llvm-dis | FileCheck --check-prefix=IR1 %s
|
|
; RUN: llvm-modextract -n 1 -o - %t | llvm-dis | FileCheck --check-prefix=IR2 %s
|
|
|
|
; RUN: llvm-as -o %t1 %s
|
|
; RUN: llvm-as -o %t2 %S/Inputs/multi-module.ll
|
|
; RUN: llvm-cat -o %t %t1 %t2
|
|
; RUN: llvm-bcanalyzer -dump %t | FileCheck --check-prefix=BCA %s
|
|
|
|
; RUN: llvm-cat -b -o %t %t1 %t2
|
|
; RUN: llvm-bcanalyzer -dump %t | FileCheck --check-prefix=BCA %s
|
|
|
|
; RUN: llvm-modextract -n 0 -o - %t | llvm-dis | FileCheck --check-prefix=IR1 %s
|
|
; RUN: llvm-modextract -n 1 -o - %t | llvm-dis | FileCheck --check-prefix=IR2 %s
|
|
|
|
; RUN: llvm-cat -b -o %t3 %t %t
|
|
; RUN: llvm-bcanalyzer -dump %t3 | FileCheck --check-prefix=BCA4 %s
|
|
|
|
; RUN: llvm-modextract -n 0 -o - %t3 | llvm-dis | FileCheck --check-prefix=IR1 %s
|
|
; RUN: llvm-modextract -n 1 -o - %t3 | llvm-dis | FileCheck --check-prefix=IR2 %s
|
|
; RUN: llvm-modextract -n 2 -o - %t3 | llvm-dis | FileCheck --check-prefix=IR1 %s
|
|
; RUN: llvm-modextract -n 3 -o - %t3 | llvm-dis | FileCheck --check-prefix=IR2 %s
|
|
|
|
; BCA: <IDENTIFICATION_BLOCK
|
|
; BCA: <MODULE_BLOCK
|
|
; BCA: <IDENTIFICATION_BLOCK
|
|
; BCA: <MODULE_BLOCK
|
|
|
|
; BCA4: <IDENTIFICATION_BLOCK
|
|
; BCA4: <MODULE_BLOCK
|
|
; BCA4: <IDENTIFICATION_BLOCK
|
|
; BCA4: <MODULE_BLOCK
|
|
; BCA4: <IDENTIFICATION_BLOCK
|
|
; BCA4: <MODULE_BLOCK
|
|
; BCA4: <IDENTIFICATION_BLOCK
|
|
; BCA4: <MODULE_BLOCK
|
|
|
|
; IR1: define void @f1()
|
|
; IR2: define void @f2()
|
|
|
|
define void @f1() {
|
|
ret void
|
|
}
|