New testcase: check that the inliner constant folds instructions on the

fly if it can.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28515 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-05-27 01:16:22 +00:00
parent 729c6d1da8
commit 5ca32a6d6c

View File

@ -0,0 +1,15 @@
; RUN: llvm-as < %s | opt -inline -disable-output &&
; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep callee &&
; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep div
implementation
internal int %callee(int %A, int %B) {
%C = div int %A, %B
ret int %C
}
int %test() {
%X = call int %callee(int 10, int 3)
ret int %X
}