xref: /llvm-project/llvm/test/Transforms/GlobalOpt/2008-01-29-VolatileGlobal.ll (revision d586bd5ca231a6022f439d4c6e43cfeeb53eb1d6)
18ebb3eacSBjorn Pettersson; RUN: opt < %s -passes=globalopt -S | FileCheck %s
2cee313d2SEric Christopher; CHECK: load volatile
3*d586bd5cSNikita Popov@t0.1441 = internal global double 0x3FD5555555555555, align 8		; <ptr> [#uses=1]
4cee313d2SEric Christopher
5cee313d2SEric Christopherdefine double @foo() nounwind  {
6cee313d2SEric Christopherentry:
7*d586bd5cSNikita Popov	%tmp1 = load volatile double, ptr @t0.1441, align 8		; <double> [#uses=2]
8cee313d2SEric Christopher	%tmp4 = fmul double %tmp1, %tmp1		; <double> [#uses=1]
9cee313d2SEric Christopher	ret double %tmp4
10cee313d2SEric Christopher}
11