2018-03-27 Richard Biener <rguenther@suse.de>
PR testsuite/82847
* lib/target-supports.exp (check_ssse3_available): New function.
(check_effective_target_vect_perm_short): Enable for x86 if
check_ssse3_available.
From-SVN: r258882
+2018-03-27 Richard Biener <rguenther@suse.de>
+
+ PR testsuite/82847
+ * lib/target-supports.exp (check_ssse3_available): New function.
+ (check_effective_target_vect_perm_short): Enable for x86 if
+ check_ssse3_available.
+
2018-03-27 Richard Biener <rguenther@suse.de>
PR tree-optimization/85082
&& ![check_effective_target_vect_variable_length])
|| [istarget powerpc*-*-*]
|| [istarget spu-*-*]
+ || (([istarget i?86-*-*] || [istarget x86_64-*-*]
+ && [check_ssse3_available]))
|| ([istarget mips*-*-*]
&& [et-is-effective-target mips_msa])
|| ([istarget s390*-*-*]
return 0;
}
+# Return true if we are compiling for SSSE3 target.
+
+proc check_ssse3_available { } {
+ if { [check_no_compiler_messages sse3a_available assembly {
+ #ifndef __SSSE3__
+ #error unsupported
+ #endif
+ } ""] } {
+ return 1;
+ }
+ return 0;
+}
+
# Return true if 32- and 16-bytes vectors are available.
proc check_effective_target_vect_sizes_32B_16B { } {