llvm.org GIT mirror llvm / 8975f51 test / CodeGen / X86 / remat-constant.ll
8975f51

Tree @8975f51 (Download .tar.gz)

remat-constant.ll @8975f51raw · history · blame

; RUN: llc < %s -mtriple=x86_64-linux -relocation-model=static | grep xmm | count 2

declare void @bar() nounwind

@a = external constant float

declare void @qux(float %f) nounwind 

define void @foo() nounwind  {
  %f = load float* @a
  call void @bar()
  call void @qux(float %f)
  call void @qux(float %f)
  ret void
}