summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/remat-mov-0.ll
blob: c4f768ca529bb74ea950deadf33249c4385c0015 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llc < %s -march=x86-64 | grep {xorl	%edi, %edi} | count 4

; CodeGen should remat the zero instead of spilling it.

declare void @foo(i64 %p)

define void @bar() nounwind {
  call void @foo(i64 0)
  call void @foo(i64 0)
  call void @foo(i64 0)
  call void @foo(i64 0)
  ret void
}