[PATCH] D109178: [PowerPC] Disable vector types when not supported by subtarget features
Victor Huang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 3 07:28:52 PDT 2021
NeHuang added inline comments.
================
Comment at: clang/test/CodeGen/builtins-ppc-int128.c:4
+// RUN: -triple powerpc64-unknown-unknown -target-cpu pwr8 \
+// RUN: -emit-llvm %s -o - -U__XL_COMPAT_ALTIVEC__ | FileCheck %s
+// RUN: %clang_cc1 -target-feature +altivec -target-feature +vsx \
----------------
nit: indentation
================
Comment at: clang/test/Parser/altivec.c:92
// These should have errors.
+#ifndef __VSX__
__vector double vv_d1; // expected-error {{use of 'double' with '__vector' requires VSX support to be enabled (available on POWER7 or later)}}
----------------
Will this patch also impact `vector double`? If not, can we move `#ifndef __VSX__` down below `vector double v_d2;`?
================
Comment at: clang/test/Parser/cxx-altivec.cpp:91
-// These should have errors.
+#ifndef __VSX__
+// These should have errors for non pwr7 vsx builds.
----------------
same as above.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109178/new/
https://reviews.llvm.org/D109178
More information about the cfe-commits
mailing list