OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [dump-noaddr.x] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
# This checks if -fdump-noaddr dumps are done consistently.
2
proc dump_compare { src options } {
3
    global srcdir subdir
4
    global tmpdir
5
 
6
    global torture_with_loops
7
    set option_list $torture_with_loops
8
    set dumpbase [file tail $src]
9
 
10
    # loop through all the options
11
    foreach option $option_list {
12
        file delete -force dump1
13
        file mkdir dump1
14
        c-torture-compile $src "$option $options -dumpbase dump1/$dumpbase -DMASK=1 -x c --param ggc-min-heapsize=1 -fdump-ipa-all -fdump-rtl-all -fdump-tree-all -fdump-noaddr"
15
        file delete -force dump2
16
        file mkdir dump2
17
        c-torture-compile $src "$option $options -dumpbase dump2/$dumpbase -DMASK=2 -x c -fdump-ipa-all -fdump-rtl-all -fdump-tree-all -fdump-noaddr"
18
        foreach dump1 [lsort [glob -nocomplain dump1/*]] {
19
            regsub dump1/ $dump1 dump2/ dump2
20
            set dumptail "gcc.c-torture/unsorted/[file tail $dump1]"
21
            #puts "$option $dump1"
22
            set tmp [ diff "$dump1" "$dump2" ]
23
            if { $tmp == 0 } {
24
                untested "$dumptail, $option comparison"
25
            } elseif { $tmp == 1 } {
26
                pass "$dumptail, $option comparison"
27
            } else {
28
                fail "$dumptail, $option comparison"
29
            }
30
            #exec diff $dump1 $dump2
31
        }
32
    }
33
    file delete -force dump1
34
    file delete -force dump2
35
}
36
 
37
catch {dump_compare $src $options} result
38
puts $result
39
verbose result
40
return 1

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.