FreeBSD Bugzilla – Attachment 178761 Details for
Bug 215977
clang on armv6 incorrectly emits call to sincos()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Example program to reproduce incorrect clang -fast-math behavior on armv6
sincos.c (text/plain), 245 bytes, created by
Jia-Shiun Li
on 2017-01-11 17:26:26 UTC
(
hide
)
Description:
Example program to reproduce incorrect clang -fast-math behavior on armv6
Filename:
MIME Type:
Creator:
Jia-Shiun Li
Created:
2017-01-11 17:26:26 UTC
Size:
245 bytes
patch
obsolete
>#include <math.h> >#include <stdio.h> >#include <time.h> > >int main() >{ > double sin1; > double cos1; > double a = (double)time(NULL); > > sin1 = sin(a); > cos1 = cos(a); > printf("a %f sin %f cos %f\n", a, sin1, cos1); > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 215977
: 178761