[LLVMbugs] [Bug 17446] New: misc missing math builtins
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Oct 2 12:26:20 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17446
Bug ID: 17446
Summary: misc missing math builtins
Product: clang
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: rkotler at mips.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11323
--> http://llvm.org/bugs/attachment.cgi?id=11323&action=edit
gcc test
see attached test case__builtin_yn __builtin_ynl __builtin_y1
__builtin_y1f __builtin_y0l __builtin_y0 __builtin_jn __builtin_jn
kotler at mipssw006:~/rt-rk-4doug/tmp$ ~/llvmw/install/bin/clang
../tests-c/builtin-math-4.c
../tests-c/builtin-math-4.c:148:3: error: use of unknown builtin
'__builtin_j0f' [-Wimplicit-function-declaration]
TESTIT (j0, 0.0, 1.0); /* j0(0) == 1 */
^
../tests-c/builtin-math-4.c:25:7: note: expanded from macro 'TESTIT'
if (__builtin_##FUNC##f(ARG##F) != RES##F \
^
<scratch space>:3:1: note: expanded from here
__builtin_j0f
^
../tests-c/builtin-math-4.c:148:3: error: use of unknown builtin '__builtin_j0'
[-Wimplicit-function-declaration]
../tests-c/builtin-math-4.c:28:7: note: expanded from macro 'TESTIT'
if (__builtin_##FUNC(ARG) != RES \
^
<scratch space>:3:1: note: expanded from here
__builtin_j0
^
../tests-c/builtin-math-4.c:148:3: note: did you mean '__builtin_j0f'?
../tests-c/builtin-math-4.c:28:7: note: expanded from macro 'TESTIT'
if (__builtin_##FUNC(ARG) != RES \
^
<scratch space>:3:1: note: expanded from here
__builtin_j0
^
../tests-c/builtin-math-4.c:148:3: note: '__builtin_j0f' declared here
../tests-c/builtin-math-4.c:25:7: note: expanded from macro 'TESTIT'
if (__builtin_##FUNC##f(ARG##F) != RES##F \
^
<scratch space>:3:1: note: expanded from here
__builtin_j0f
^
../tests-c/builtin-math-4.c:148:3: error: use of unknown builtin
'__builtin_j0l' [-Wimplicit-function-declaration]
TESTIT (j0, 0.0, 1.0); /* j0(0) == 1 */
^
../tests-c/builtin-math-4.c:31:7: note: expanded from macro 'TESTIT'
if (__builtin_##FUNC##l(ARG##L) != RES##L \
^
<scratch space>:3:1: note: expanded from here
__builtin_j0l
^
../tests-c/builtin-math-4.c:153:3: error: use of unknown builtin
'__builtin_j1f' [-Wimplicit-function-declaration]
TESTIT (j1, 0.0, 0.0); /* j1(0) == 0 */
^
../tests-c/builtin-math-4.c:25:7: note: expanded from macro 'TESTIT'
if (__builtin_##FUNC##f(ARG##F) != RES##F \
^
<scratch space>:3:1: note: expanded from here
__builtin_j1f
^
../tests-c/builtin-math-4.c:153:3: note: did you mean '__builtin_j0f'?
../tests-c/builtin-math-4.c:25:7: note: expanded from macro 'TESTIT'
if (__builtin_##FUNC##f(ARG##F) != RES##F \
^
<scratch space>:3:1: note: expanded from here
__builtin_j1f
^
../tests-c/builtin-math-4.c:148:3: note: '__builtin_j0f' declared here
TESTIT (j0, 0.0, 1.0); /* j0(0) == 1 */
^
../tests-c/builtin-math-4.c:25:7: note: expanded from macro 'TESTIT'
if (__builtin_##FUNC##f(ARG##F) != RES##F \
^
<scratch space>:3:1: note: expanded from here
__builtin_j0f
^
../tests-c/builtin-math-4.c:153:3: error: use of unknown builtin '__builtin_j1'
[-Wimplicit-function-declaration]
TESTIT (j1, 0.0, 0.0); /* j1(0) == 0 */
^
../tests-c/builtin-math-4.c:28:7: note: expanded from macro 'TESTIT'
if (__builtin_##FUNC(ARG) != RES \
^
<scratch space>:3:1: note: expanded from here
__builtin_j1
^
../tests-c/builtin-math-4.c:153:3: error: use of unknown builtin
'__builtin_j1l' [-Wimplicit-function-declaration]
../tests-c/builtin-math-4.c:31:7: note: expanded from macro 'TESTIT'
if (__builtin_##FUNC##l(ARG##L) != RES##L \
^
<scratch space>:3:1: note: expanded from here
__builtin_j1l
^
../tests-c/builtin-math-4.c:158:3: error: use of unknown builtin
'__builtin_jnf' [-Wimplicit-function-declaration]
TESTIT2 (jn, 5, 0.0, 0.0); /* jn(5,0) == 0 */
^
../tests-c/builtin-math-4.c:48:7: note: expanded from macro 'TESTIT2'
if (__builtin_##FUNC##f(ARG1, ARG2##F) != RES##F \
^
<scratch space>:3:1: note: expanded from here
__builtin_jnf
^
../tests-c/builtin-math-4.c:158:3: error: use of unknown builtin '__builtin_jn'
[-Wimplicit-function-declaration]
../tests-c/builtin-math-4.c:51:7: note: expanded from macro 'TESTIT2'
if (__builtin_##FUNC(ARG1, ARG2) != RES \
^
<scratch space>:3:1: note: expanded from here
__builtin_jn
^
../tests-c/builtin-math-4.c:158:3: error: use of unknown builtin
'__builtin_jnl' [-Wimplicit-function-declaration]
../tests-c/builtin-math-4.c:54:7: note: expanded from macro 'TESTIT2'
if (__builtin_##FUNC##l(ARG1, ARG2##L) != RES##L \
^
<scratch space>:3:1: note: expanded from here
__builtin_jnl
^
../tests-c/builtin-math-4.c:188:3: error: use of unknown builtin
'__builtin_y0f' [-Wimplicit-function-declaration]
TESTIT_R (y0, 5.0, -0.31, -0.30); /* y0(5) == -0.308... */
^
../tests-c/builtin-math-4.c:38:7: note: expanded from macro 'TESTIT_R'
if (__builtin_##FUNC##f(ARG) <= (LOW) || __builtin_##FUNC##f(ARG) >= (HI)) \
^
<scratch space>:189:1: note: expanded from here
__builtin_y0f
^
../tests-c/builtin-math-4.c:188:3: note: did you mean '__builtin_j0f'?
../tests-c/builtin-math-4.c:38:7: note: expanded from macro 'TESTIT_R'
if (__builtin_##FUNC##f(ARG) <= (LOW) || __builtin_##FUNC##f(ARG) >= (HI)) \
^
<scratch space>:189:1: note: expanded from here
__builtin_y0f
^
../tests-c/builtin-math-4.c:148:3: note: '__builtin_j0f' declared here
TESTIT (j0, 0.0, 1.0); /* j0(0) == 1 */
^
../tests-c/builtin-math-4.c:25:7: note: expanded from macro 'TESTIT'
if (__builtin_##FUNC##f(ARG##F) != RES##F \
^
<scratch space>:3:1: note: expanded from here
__builtin_j0f
^
../tests-c/builtin-math-4.c:188:3: error: use of unknown builtin '__builtin_y0'
[-Wimplicit-function-declaration]
TESTIT_R (y0, 5.0, -0.31, -0.30); /* y0(5) == -0.308... */
^
../tests-c/builtin-math-4.c:40:7: note: expanded from macro 'TESTIT_R'
if (__builtin_##FUNC(ARG) <= (LOW) || __builtin_##FUNC(ARG) >= (HI)) \
^
<scratch space>:189:1: note: expanded from here
__builtin_y0
^
../tests-c/builtin-math-4.c:188:3: error: use of unknown builtin
'__builtin_y0l' [-Wimplicit-function-declaration]
../tests-c/builtin-math-4.c:42:7: note: expanded from macro 'TESTIT_R'
if (__builtin_##FUNC##l(ARG) <= (LOW) || __builtin_##FUNC##l(ARG) >= (HI)) \
^
<scratch space>:189:1: note: expanded from here
__builtin_y0l
^
../tests-c/builtin-math-4.c:191:3: error: use of unknown builtin
'__builtin_y1f' [-Wimplicit-function-declaration]
TESTIT_R (y1, 5.0, 0.14, 0.15); /* y1(5) == 0.147... */
^
../tests-c/builtin-math-4.c:38:7: note: expanded from macro 'TESTIT_R'
if (__builtin_##FUNC##f(ARG) <= (LOW) || __builtin_##FUNC##f(ARG) >= (HI)) \
^
<scratch space>:189:1: note: expanded from here
__builtin_y1f
^
../tests-c/builtin-math-4.c:191:3: error: use of unknown builtin '__builtin_y1'
[-Wimplicit-function-declaration]
../tests-c/builtin-math-4.c:40:7: note: expanded from macro 'TESTIT_R'
if (__builtin_##FUNC(ARG) <= (LOW) || __builtin_##FUNC(ARG) >= (HI)) \
^
<scratch space>:189:1: note: expanded from here
__builtin_y1
^
../tests-c/builtin-math-4.c:191:3: error: use of unknown builtin
'__builtin_y1l' [-Wimplicit-function-declaration]
../tests-c/builtin-math-4.c:42:7: note: expanded from macro 'TESTIT_R'
if (__builtin_##FUNC##l(ARG) <= (LOW) || __builtin_##FUNC##l(ARG) >= (HI)) \
^
<scratch space>:189:1: note: expanded from here
__builtin_y1l
^
../tests-c/builtin-math-4.c:194:3: error: use of unknown builtin
'__builtin_ynf' [-Wimplicit-function-declaration]
TESTIT2_R (yn, -1, 3.0, -0.33, -0.32); /* yn(-1,3) == -0.324... */
^
../tests-c/builtin-math-4.c:61:7: note: expanded from macro 'TESTIT2_R'
if (__builtin_##FUNC##f(ARG1, ARG2##F) <= (LOW) \
^
<scratch space>:189:1: note: expanded from here
__builtin_ynf
^
../tests-c/builtin-math-4.c:194:3: error: use of unknown builtin '__builtin_yn'
[-Wimplicit-function-declaration]
../tests-c/builtin-math-4.c:64:7: note: expanded from macro 'TESTIT2_R'
if (__builtin_##FUNC(ARG1, ARG2) <= (LOW) \
^
<scratch space>:189:1: note: expanded from here
__builtin_yn
^
../tests-c/builtin-math-4.c:194:3: error: use of unknown builtin
'__builtin_ynl' [-Wimplicit-function-declaration]
../tests-c/builtin-math-4.c:67:7: note: expanded from macro 'TESTIT2_R'
if (__builtin_##FUNC##l(ARG1, ARG2##L) <= (LOW) \
^
<scratch space>:189:1: note: expanded from here
__builtin_ynl
^
18 errors generated
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131002/cf5ddc48/attachment.html>
More information about the llvm-bugs
mailing list