summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/remat-constant.ll
blob: 5a6826f3809035ef6c3539e58caceb35a5f6c857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; 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, float* @a
  call void @bar()
  call void @qux(float %f)
  call void @qux(float %f)
  ret void
}