mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-31 09:32:11 +00:00
b1e1e82c54
of using llvm-as, now that opt supports this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81226 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
274 B
LLVM
14 lines
274 B
LLVM
; RUN: opt %s -mergefunc | llvm-dis > %t
|
|
; RUN: grep {define weak} %t | count 2
|
|
; RUN: grep {call} %t | count 2
|
|
|
|
define weak i32 @sum(i32 %x, i32 %y) {
|
|
%sum = add i32 %x, %y
|
|
ret i32 %sum
|
|
}
|
|
|
|
define weak i32 @add(i32 %x, i32 %y) {
|
|
%sum = add i32 %x, %y
|
|
ret i32 %sum
|
|
}
|