mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
b38824f866
for now. It's controlled by the HasGlobalAliases variable which is not attached to any flag yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124182 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
409 B
LLVM
18 lines
409 B
LLVM
; RUN: opt < %s -mergefunc -S > %t
|
|
; RUN: grep {define weak} %t | count 2
|
|
; RUN: grep {call} %t | count 2
|
|
; XFAIL: *
|
|
|
|
; This test is off for a bit as we change this particular sort of folding to
|
|
; only apply on ELF systems and not Mach-O systems.
|
|
|
|
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
|
|
}
|