mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
This testcase is a bit silly now, but oh well :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14188 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,11 +1,9 @@
|
|||||||
; RUN: llvm-as < %s | llc -march=x86 | grep com | wc -l > %t2
|
; RUN: llvm-as < %s | llc -march=x86 | grep com | wc -l > %t2
|
||||||
; RUN: grep 'COM =' %s | grep -v grep | wc -l > %t1
|
; RUN: grep 'COM =' %s | grep -v grep | wc -l > %t1
|
||||||
; RUN: diff %t1 %t2
|
; RUN: diff %t1 %t2
|
||||||
declare bool %llvm.isnan(double)
|
declare bool %llvm.isunordered(double,double)
|
||||||
|
|
||||||
bool %test1(double %X, double %Y) { ;; Returns isunordered(X,Y)
|
bool %test1(double %X, double %Y) { ;; Returns isunordered(X,Y)
|
||||||
%a = call bool %llvm.isnan(double %X)
|
%COM = call bool %llvm.isunordered(double %X, double %Y)
|
||||||
%b = call bool %llvm.isnan(double %Y)
|
|
||||||
%COM = or bool %a, %b
|
|
||||||
ret bool %COM
|
ret bool %COM
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user