On Dec 27, 2014, at 8:33 AM, Segher Boessenkool <[email protected]>
wrote:
> On Sat, Dec 27, 2014 at 10:11:59AM -0600, Segher Boessenkool wrote:
>>> Please consider pulling the check out and putting it in at the top of the
>>> ubsan.exp type of files.
>>>
>>> I suspect there is little need to check this more than once per language or
>>> so.
>
> Actually, that is already how it is done :-)
No, examine i386.exp for the line at the top that does this:
# Exit immediately if this isn't a x86 target.
if { ![istarget i?86*-*-*] && ![istarget x86_64-*-*] } then {
return
}
Here, you see that if there are 100,000 x86 test cases, this is checked once
and only about 2 lines of tcl are run. In yours, if there were 100,000 ubsan
test cases, you would discover millions of lines run, not 2. millions is
slightly more than 2.