summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/zero-remat.ll
blob: d4865634664d7ffd246f0b1f1b2b6ee5a77c5d65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: llvm-as < %s | llc -march=x86-64 | grep xor | count 4
; RUN: llvm-as < %s | llc -march=x86-64 -stats -unwind-tables-optional -info-output-file - | grep asm-printer  | grep 12
; RUN: llvm-as < %s | llc -march=x86 | grep fldz
; RUN: llvm-as < %s | llc -march=x86 | not grep fldl

declare void @bar(double %x)
declare void @barf(float %x)

define double @foo() nounwind {
  call void @bar(double 0.0)
  ret double 0.0
}
define float @foof() nounwind {
  call void @barf(float 0.0)
  ret float 0.0
}