aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/GlobalOpt/2008-01-29-VolatileGlobal.ll
blob: 08b2cb1eb6f2e0f3a9947df62d43e6a632e0eca7 (plain)
1
2
3
4
5
6
7
8
9
; RUN: opt < %s -globalopt -S | grep "load volatile"
@t0.1441 = internal global double 0x3FD5555555555555, align 8		; <double*> [#uses=1]

define double @foo() nounwind  {
entry:
	%tmp1 = load volatile double* @t0.1441, align 8		; <double> [#uses=2]
	%tmp4 = fmul double %tmp1, %tmp1		; <double> [#uses=1]
	ret double %tmp4
}