Message ID | 4710281.GXAFRqVoOG@fomalhaut |
---|---|
State | New |
Headers | show |
Series | [SPARC] Fix PR target/105292 | expand |
diff --git a/gcc/config/sparc/sparc.cc b/gcc/config/sparc/sparc.cc index 467a9f171d2..aca925befe1 100644 --- a/gcc/config/sparc/sparc.cc +++ b/gcc/config/sparc/sparc.cc @@ -13041,9 +13041,9 @@ sparc_vectorize_vec_perm_const (machine_mode vmode, rtx target, rtx op0, if (!TARGET_VIS2) return false; - /* All permutes are supported. */ + /* All 8-byte permutes are supported. */ if (!target) - return true; + return GET_MODE_SIZE (vmode) == 8; /* Force target-independent code to convert constant permutations on other modes down to V8QI. Rely on this to avoid the complexity of the byte