mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-05 01:30:18 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146411 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
393 B
LLVM
14 lines
393 B
LLVM
; RUN: opt < %s -simplify-libcalls -S | FileCheck %s
|
|
|
|
%FILE = type { i32 }
|
|
|
|
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
|
|
|
define i64 @foo(%FILE* %f) {
|
|
; CHECK: %retval = call i64 @fwrite
|
|
%retval = call i64 @fwrite(i8* getelementptr inbounds ([1 x i8]* @.str, i64 0, i64 0), i64 1, i64 1, %FILE* %f)
|
|
ret i64 %retval
|
|
}
|
|
|
|
declare i64 @fwrite(i8*, i64, i64, %FILE *)
|