llvm-6502/test/Transforms/Inline/inline_constprop.ll
2006-12-02 04:23:10 +00:00

16 lines
382 B
LLVM

; RUN: llvm-upgrade < %s | llvm-as | opt -inline -disable-output &&
; RUN: llvm-upgrade < %s | llvm-as | opt -inline | llvm-dis | not grep callee &&
; RUN: llvm-upgrade < %s | llvm-as | 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
}