[LLVMdev] TSVC/Equivalencing-dbl

Rao, Shivarama Shivarama.Rao at amd.com
Fri Oct 12 08:22:52 PDT 2012


Hi,

There was a out of bound array access in the test S1421. This is fixed and uploaded at TSVC site by the TSVC maintainers. With this fix and Hal's fix of proper initialization of arrays in broken tests, the test should work fine now.

Regards,
Shivaram

-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Duncan Sands
Sent: Saturday, October 06, 2012 1:39 AM
To: Hal Finkel
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] TSVC/Equivalencing-dbl

PS: Here's how I can reproduce with clang on linux:

clang -S -o tsc.ll -O0 -flto -std=gnu99 tsc.c ; clang -S -o dummy.ll -O0 -flto 
-std=gnu99 dummy.c ; opt -std-compile-opts tsc.ll -S -o tsc.1.ll ; opt 
-std-compile-opts dummy.ll -S -o dummy.1.ll ; llvm-link tsc.1.ll dummy.1.ll -S 
-o total.ll ; opt -std-link-opts total.ll -S -o total.1.ll ; llc total.1.ll ; 
gcc -o z total.1.s

The program z shows the problem.  Note that it is essential to have clang use
-O0 (not -O3).

Ciao, Duncan.
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev






More information about the llvm-dev mailing list