summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/compare_folding.llx
blob: 5a4471b9da90501c3f1799b57ecffe5b5e8590c6 (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah | grep movsd | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah | grep ucomisd
declare bool %llvm.isunordered.f64(double,double)

bool %test1(double %X, double %Y) {  ;; Returns isunordered(X,Y)
	%COM = call bool %llvm.isunordered.f64(double %X, double %Y)
	ret bool %COM
}