summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/compare_folding.llx
blob: 652057e9bb773393d7217a839e23233b622669dd (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=yonah | grep movsd | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | 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
}