lit.py: ~/workspace/LLVM/llvm/tools/clang/test/lit.cfg:200: note: using clang: '~/workspace/LLVM/ninjacmake/./bin/clang' -- Testing: 37268 tests, 8 threads -- Testing: 0 .. FAIL: Builtins-i386-linux :: divsc3_test.c (4326 of 37268) ******************** TEST 'Builtins-i386-linux :: divsc3_test.c' FAILED ******************** Script: -- ~/workspace/LLVM/ninjacmake/./bin/clang -gline-tables-only -m32 -fno-builtin -I ~/workspace/LLVM/llvm/projects/compiler-rt/lib/builtins -nodefaultlibs ~/workspace/LLVM/llvm/projects/compiler-rt/test/builtins/Unit/divsc3_test.c ~/workspace/LLVM/ninjacmake/./lib/clang/5.0.0/lib/linux/libclang_rt.builtins-i386.a -lc -lm -lm -o ~/workspace/LLVM/ninjacmake/projects/compiler-rt/test/builtins/Unit/I386LinuxConfig/Output/divsc3_test.c.tmp && ~/workspace/LLVM/ninjacmake/projects/compiler-rt/test/builtins/Unit/I386LinuxConfig/Output/divsc3_test.c.tmp -- Exit Code: 1 ******************** Testing: 0 .. 10 FAIL: Builtins-i686-linux :: divsc3_test.c (4514 of 37268) ******************** TEST 'Builtins-i686-linux :: divsc3_test.c' FAILED ******************** Script: -- ~/workspace/LLVM/ninjacmake/./bin/clang -gline-tables-only -m32 -fno-builtin -I ~/workspace/LLVM/llvm/projects/compiler-rt/lib/builtins -nodefaultlibs ~/workspace/LLVM/llvm/projects/compiler-rt/test/builtins/Unit/divsc3_test.c ~/workspace/LLVM/ninjacmake/./lib/clang/5.0.0/lib/linux/libclang_rt.builtins-i686.a -lc -lm -lm -o ~/workspace/LLVM/ninjacmake/projects/compiler-rt/test/builtins/Unit/I686LinuxConfig/Output/divsc3_test.c.tmp && ~/workspace/LLVM/ninjacmake/projects/compiler-rt/test/builtins/Unit/I686LinuxConfig/Output/divsc3_test.c.tmp -- Exit Code: 1 ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. Testing Time: 727.13s ******************** Failing Tests (2): Builtins-i386-linux :: divsc3_test.c Builtins-i686-linux :: divsc3_test.c Expected Passes : 35684 Expected Failures : 210 Unsupported Tests : 1372 Unexpected Failures: 2 -- GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ The Tao of math: The numbers you can count are not the real numbers. Life is complex, with real and imaginary parts. "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds "People disagree with me. I just ignore them." -- Linus Torvalds
Given that the LLVM project runs a variety of automated validation regularly on build bots (& many developers run the tests locally), it may require a bit more investigation (possibly on your part) & debugging to figure out why these are failing for you and presumably not for everyone else. On Thu, Jun 8, 2017 at 4:24 AM Csaba Raduly via llvm-dev < llvm-dev at lists.llvm.org> wrote:> lit.py: ~/workspace/LLVM/llvm/tools/clang/test/lit.cfg:200: note: > using clang: '~/workspace/LLVM/ninjacmake/./bin/clang' > -- Testing: 37268 tests, 8 threads -- > Testing: 0 .. > FAIL: Builtins-i386-linux :: divsc3_test.c (4326 of 37268) > ******************** TEST 'Builtins-i386-linux :: divsc3_test.c' > FAILED ******************** > Script: > -- > ~/workspace/LLVM/ninjacmake/./bin/clang -gline-tables-only -m32 > -fno-builtin -I > ~/workspace/LLVM/llvm/projects/compiler-rt/lib/builtins -nodefaultlibs > ~/workspace/LLVM/llvm/projects/compiler-rt/test/builtins/Unit/divsc3_test.c > > ~/workspace/LLVM/ninjacmake/./lib/clang/5.0.0/lib/linux/libclang_rt.builtins-i386.a > -lc -lm -lm -o > ~/workspace/LLVM/ninjacmake/projects/compiler-rt/test/builtins/Unit/I386LinuxConfig/Output/divsc3_test.c.tmp > && > ~/workspace/LLVM/ninjacmake/projects/compiler-rt/test/builtins/Unit/I386LinuxConfig/Output/divsc3_test.c.tmp > -- > Exit Code: 1 > > > ******************** > Testing: 0 .. 10 > FAIL: Builtins-i686-linux :: divsc3_test.c (4514 of 37268) > ******************** TEST 'Builtins-i686-linux :: divsc3_test.c' > FAILED ******************** > Script: > -- > ~/workspace/LLVM/ninjacmake/./bin/clang -gline-tables-only -m32 > -fno-builtin -I > ~/workspace/LLVM/llvm/projects/compiler-rt/lib/builtins -nodefaultlibs > ~/workspace/LLVM/llvm/projects/compiler-rt/test/builtins/Unit/divsc3_test.c > > ~/workspace/LLVM/ninjacmake/./lib/clang/5.0.0/lib/linux/libclang_rt.builtins-i686.a > -lc -lm -lm -o > ~/workspace/LLVM/ninjacmake/projects/compiler-rt/test/builtins/Unit/I686LinuxConfig/Output/divsc3_test.c.tmp > && > ~/workspace/LLVM/ninjacmake/projects/compiler-rt/test/builtins/Unit/I686LinuxConfig/Output/divsc3_test.c.tmp > -- > Exit Code: 1 > > > ******************** > Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. > Testing Time: 727.13s > ******************** > Failing Tests (2): > Builtins-i386-linux :: divsc3_test.c > Builtins-i686-linux :: divsc3_test.c > > Expected Passes : 35684 > Expected Failures : 210 > Unsupported Tests : 1372 > Unexpected Failures: 2 > > > -- > GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ > The Tao of math: The numbers you can count are not the real numbers. > Life is complex, with real and imaginary parts. > "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus > Torvalds > "People disagree with me. I just ignore them." -- Linus Torvalds > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170608/7bec5b8a/attachment.html>
I debugged divsc3_test.c The test fails at i=0 , j=42 test__divsc3 (a=9.99999997e-07, b=9.99999997e-07, c=-0.5, d=-2) r = -5.88235309e-07 + 3.52941186e-07 * I classify (x=9.99999997e-07 + 9.99999997e-07 * I) => 1 (non_zero) classify (x=-0.5 + -2 * I) => 1 (non_zero) classify (x=-5.88235309e-07 + 3.52941186e-07 * I) => 1 (non_zero) z =-5.88235253e-07 + 3.52941186e-07 * I r =-5.88235309e-07 + 3.52941186e-07 * I which indeed is not equal to r This is Ubuntu 14.04 LTS $ uname -a Linux 3.13.0-119-generic #166-Ubuntu SMP Wed May 3 12:18:55 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux /proc/cpuinfo processor : 7 vendor_id : GenuineIntel cpu family : 6 model : 58 model name : Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz stepping : 9 microcode : 0x19 cpu MHz : 3401.000 cache size : 8192 KB physical id : 0 siblings : 8 core id : 3 cpu cores : 4 apicid : 7 initial apicid : 7 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms bogomips : 6784.49 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: clang was built with the built-in gcc: gcc version 4.8.5 (Ubuntu 4.8.5-2ubuntu1~14.04.1) Csaba -- GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ The Tao of math: The numbers you can count are not the real numbers. Life is complex, with real and imaginary parts. "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds "People disagree with me. I just ignore them." -- Linus Torvalds