mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 23:29:22 +00:00
14 lines
264 B
LLVM
14 lines
264 B
LLVM
|
; RUN: opt -S -partially-inline-libcalls < %s | FileCheck %s
|
||
|
|
||
|
target triple = "x86_64-unknown-linux-gnu"
|
||
|
|
||
|
declare i32 @sqrt()
|
||
|
|
||
|
; CHECK-LABEL: @foo
|
||
|
define i32 @foo() {
|
||
|
; CHECK: call{{.*}}@sqrt
|
||
|
; CHECK-NOT: call{{.*}}@sqrt
|
||
|
%r = call i32 @sqrt()
|
||
|
ret i32 %r
|
||
|
}
|