aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/CBackend/pr10081.ll
blob: 723bf5c757c602024de98904d780fe9828cff9b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
; 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
}