diff options
author | Revital Eres <eres@il.ibm.com> | 2009-06-05 15:28:50 +0000 |
---|---|---|
committer | Revital Eres <revitale@gcc.gnu.org> | 2009-06-05 15:28:50 +0000 |
commit | 8f439681a9e2e7fa095868097d0e0cc331734957 (patch) | |
tree | 571ecc16c72471ada3d0e6110405190f1bf85bd8 /gcc/testsuite/lib/target-supports.exp | |
parent | b89f8e3cf93504308c957b408a96ef2866567ccc (diff) | |
download | gcc-8f439681a9e2e7fa095868097d0e0cc331734957.tar.gz |
misaligned store support
Co-Authored-By: Leehod Baruch <leehod@il.ibm.com>
From-SVN: r148211
Diffstat (limited to 'gcc/testsuite/lib/target-supports.exp')
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index e2d24c8c156..7703380b5ad 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -2220,6 +2220,26 @@ proc check_effective_target_vect_no_align { } { return $et_vect_no_align_saved } +# Return 1 if the target supports a vector misalign access, 0 otherwise. +# +# This won't change for different subtargets so cache the result. + +proc check_effective_target_vect_hw_misalign { } { + global et_vect_hw_misalign_saved + + if [info exists et_vect_hw_misalign_saved] { + verbose "check_effective_target_vect_hw_misalign: using cached result" 2 + } else { + set et_vect_hw_misalign_saved 0 + if { [istarget x86_64-*-*] } { + set et_vect_hw_misalign_saved 1 + } + } + verbose "check_effective_target_vect_hw_misalign: returning $et_vect_hw_misalign_saved" 2 + return $et_vect_hw_misalign_saved +} + + # Return 1 if arrays are aligned to the vector alignment # boundary, 0 otherwise. # |