mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-22 10:33:23 +00:00
a0f596c1fc
'static' variable will be emitted twice. PR10081 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137134 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
303 B
LLVM
12 lines
303 B
LLVM
; RUN: llc < %s -march=c | grep {static float _ZL3foo} | count 1
|
|
; PR10081
|
|
|
|
@_ZL3foo = internal global float 0.000000e+00, align 4
|
|
|
|
define float @_Z3barv() nounwind ssp {
|
|
%1 = load float* @_ZL3foo, align 4
|
|
%2 = fadd float %1, 1.000000e+00
|
|
store float %2, float* @_ZL3foo, align 4
|
|
ret float %1
|
|
}
|