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

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