mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-01 18:12:49 +00:00
Test that the X86 backend is only emitting one fucom instruction
for each 'COM =' line. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14147 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
57790422ca
commit
c31ae50c04
11
test/CodeGen/X86/compare_folding.llx
Normal file
11
test/CodeGen/X86/compare_folding.llx
Normal file
@ -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…
x
Reference in New Issue
Block a user