Chris Lattner | c31ae50 | 2004-06-11 05:30:34 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -march=x86 | grep com | wc -l > %t2 |
2 | ; RUN: grep 'COM =' %s | grep -v grep | wc -l > %t1 | ||||
3 | ; RUN: diff %t1 %t2 | ||||
4 | declare bool %llvm.isnan(double) | ||||
5 | |||||
6 | bool %test1(double %X, double %Y) { ;; Returns isunordered(X,Y) | ||||
7 | %a = call bool %llvm.isnan(double %X) | ||||
8 | %b = call bool %llvm.isnan(double %Y) | ||||
9 | %COM = or bool %a, %b | ||||
10 | ret bool %COM | ||||
11 | } |