We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dceae1 commit 9c2a920Copy full SHA for 9c2a920
repro.fpcore
@@ -0,0 +1 @@
1
+(FPCore (z0) (- 1/2 (* (cos (+ z0 z0)) 1/2)))
src/platforms/herbie20.rkt
@@ -199,3 +199,10 @@
199
200
(define-operation (binary32->binary64 [x <binary32>]) <binary64>
201
#:spec x #:fpcore (! :precision binary64 (cast x)) #:impl identity #:cost 64)
202
+
203
+(define-operation (test [z0 <binary64>])
204
+ <binary64>
205
+ #:spec (- 1/2 (* (cos (+ z0 z0)) 1/2))
206
+ #:impl (from-rival)
207
+ #:fpcore (! :precision binary64 (test z0))
208
+ #:cost 0)
0 commit comments