Patchwork [committed] Fix check_effective_target_vect_multiple_sizes and check_effective_target_vect64

login
register
mail settings
Submitter Ira Rosen
Date Oct. 4, 2011, 7:22 a.m.
Message ID <CAKSNEw4w-EkFMA+GxsUypG76SCf-M1Okv=kvshpnmVer=6n+6g@mail.gmail.com>
Download mbox | patch
Permalink /patch/117582/
State New
Headers show

Comments

Ira Rosen - Oct. 4, 2011, 7:22 a.m.
Hi,

Michael pointed out this problem in
check_effective_target_vect_multiple_sizes and
check_effective_target_vect64 that I added lately.

Tested on powerpc64-suse-linux.
Committed as obvious.

Thanks,
Ira

testsuite/ChangeLog:

        * lib/target-supports.exp (check_effective_target_vect_multiple_sizes):
        Make et_vect_multiple_sizes_saved global.
        (check_effective_target_vect64): Make et_vect64_saved global.


cached result" 2
@@ -3393,7 +3393,7 @@ proc check_effective_target_vect_multiple_sizes {
 # Return 1 if the target supports vectors of 64 bits.

 proc check_effective_target_vect64 { } {
-    global et_vect64
+    global et_vect64_saved

     if [info exists et_vect64_saved] {
         verbose "check_effective_target_vect64: using cached result" 2

Patch

Index: testsuite/lib/target-supports.exp
===================================================================
--- testsuite/lib/target-supports.exp   (revision 179489)
+++ testsuite/lib/target-supports.exp   (working copy)
@@ -3375,7 +3375,7 @@  foreach N {2 3 4 8} {
 # Return 1 if the target supports multiple vector sizes

 proc check_effective_target_vect_multiple_sizes { } {
-    global et_vect_multiple_sizes
+    global et_vect_multiple_sizes_saved

     if [info exists et_vect_multiple_sizes_saved] {
         verbose "check_effective_target_vect_multiple_sizes: using