[llvm-commits] [llvm-gcc-4.2] r132922 - in /llvm-gcc-4.2/trunk/gcc/testsuite/gcc.misc-tests: bprob-2.c bprob.exp disable.bprob-2.c
Bill Wendling
isanbard at gmail.com
Mon Jun 13 11:08:54 PDT 2011
Author: void
Date: Mon Jun 13 13:08:54 2011
New Revision: 132922
URL: http://llvm.org/viewvc/llvm-project?rev=132922&view=rev
Log:
Just disable this test. For some reason, it's refusing to change its behavior on the buildbot. The correct fix is to make it use -ftest-coverage. But I don't know how to get this expect script to do that.
Added:
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.misc-tests/disable.bprob-2.c
- copied unchanged from r132921, llvm-gcc-4.2/trunk/gcc/testsuite/gcc.misc-tests/bprob-2.c
Removed:
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.misc-tests/bprob-2.c
Modified:
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.misc-tests/bprob.exp
Removed: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.misc-tests/bprob-2.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.misc-tests/bprob-2.c?rev=132921&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.misc-tests/bprob-2.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.misc-tests/bprob-2.c (removed)
@@ -1,45 +0,0 @@
-/* Test profile-directed block ordering with computed gotos.
- *
- This is the same as test gcc.c-torture/execute/980526-1.c and
- gcc.misc-tests/gcov-3.c */
-
-extern void abort (void);
-extern void exit (int);
-
-int expect_do1 = 1, expect_do2 = 2;
-
-static int doit(int x){
- __label__ lbl1;
- __label__ lbl2;
- static int jtab_init = 0;
- static void *jtab[2];
-
- if(!jtab_init) {
- jtab[0] = &&lbl1;
- jtab[1] = &&lbl2;
- jtab_init = 1;
- }
- goto *jtab[x];
-lbl1:
- return 1;
-lbl2:
- return 2;
-}
-
-static void do1(void) {
- if (doit(0) != expect_do1)
- abort ();
-}
-
-static void do2(void){
- if (doit(1) != expect_do2)
- abort ();
-}
-
-int main(void){
-#ifndef NO_LABEL_VALUES
- do1();
- do2();
-#endif
- exit(0);
-}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.misc-tests/bprob.exp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.misc-tests/bprob.exp?rev=132922&r1=132921&r2=132922&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.misc-tests/bprob.exp (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.misc-tests/bprob.exp Mon Jun 13 13:08:54 2011
@@ -56,9 +56,6 @@
if ![runtest_file_p $runtests $src] then {
continue
}
- if {[string compare $src bprob-2.c]} then {
- continue
- }
profopt-execute $src
}
}
More information about the llvm-commits
mailing list