2019-02-13 05:55:38 +08:00
|
|
|
; RUN: llvm-dis < %s.bc | FileCheck %s
|
|
|
|
|
|
|
|
; Bitcode compatibility test for 'dynamic' parameter to llvm.objectsize.
|
|
|
|
|
|
|
|
define void @callit(i8* %ptr) {
|
|
|
|
%sz = call i64 @llvm.objectsize.i64.p0i8(i8* %ptr, i1 false, i1 true)
|
|
|
|
; CHECK: %sz = call i64 @llvm.objectsize.i64.p0i8(i8* %ptr, i1 false, i1 true, i1 false)
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i64 @llvm.objectsize.i64.p0i8(i8*, i1, i1)
|
2019-03-13 05:02:54 +08:00
|
|
|
; CHECK: declare i64 @llvm.objectsize.i64.p0i8(i8*, i1 immarg, i1 immarg, i1 immarg)
|