forked from OSchip/llvm-project
Test that the X86 backend is only emitting one fucom instruction
for each 'COM =' line. llvm-svn: 14147
This commit is contained in:
parent
71186e2fb6
commit
858cb55a5c
|
@ -0,0 +1,11 @@
|
||||||
|
; RUN: llvm-as < %s | llc -march=x86 | grep com | wc -l > %t2
|
||||||
|
; RUN: grep 'COM =' %s | grep -v grep | wc -l > %t1
|
||||||
|
; RUN: diff %t1 %t2
|
||||||
|
declare bool %llvm.isnan(double)
|
||||||
|
|
||||||
|
bool %test1(double %X, double %Y) { ;; Returns isunordered(X,Y)
|
||||||
|
%a = call bool %llvm.isnan(double %X)
|
||||||
|
%b = call bool %llvm.isnan(double %Y)
|
||||||
|
%COM = or bool %a, %b
|
||||||
|
ret bool %COM
|
||||||
|
}
|
Loading…
Reference in New Issue