mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
This commit only adds the parameter. Code taking advantage of it will follow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156473 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
592 B
LLVM
17 lines
592 B
LLVM
; RUN: opt < %s -verify -S | FileCheck %s
|
|
; check automatic upgrade of objectsize. To be removed in LLVM 3.3.
|
|
|
|
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
|
|
|
|
define i32 @foo() nounwind {
|
|
; CHECK: @foo
|
|
%1 = alloca i8, align 4
|
|
%2 = getelementptr inbounds i8* %1, i32 0
|
|
; CHECK: llvm.objectsize.i32(i8* %2, i1 false, i32 0)
|
|
%3 = call i32 @llvm.objectsize.i32(i8* %2, i1 0)
|
|
ret i32 %3
|
|
}
|
|
|
|
; CHECK: @llvm.objectsize.i32(i8*, i1, i32)
|
|
declare i32 @llvm.objectsize.i32(i8*, i1) nounwind readonly
|