1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/test/Bitcode/thinlto-asm-noimport.ll
Peter Collingbourne a538f8987b ModuleSummaryAnalysis: Correctly handle refs from function inline asm to module inline asm.
If a function contains inline asm and the module-level inline asm
contains the definition of a local symbol, prevent the function from
being imported in case the function-level inline asm refers to a
symbol in the module-level inline asm.

Differential Revision: https://reviews.llvm.org/D37370

llvm-svn: 312332
2017-09-01 16:24:02 +00:00

17 lines
401 B
LLVM

; REQUIRES: arm-registered-target
; RUN: opt -module-summary -o %t %s
; RUN: llvm-bcanalyzer -dump %t | FileCheck %s
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "thumbv7--linux-android"
module asm "asm:"
module asm "bx lr"
; NotEligibleToImport
; CHECK: <PERMODULE {{.*}} op1=16
define void @f() {
call void asm sideeffect "bl asm\0A", ""()
ret void
}