diff options
Diffstat (limited to 'clang/test/CodeGen/builtins-ppc-extractword-error.c')
-rw-r--r-- | clang/test/CodeGen/builtins-ppc-extractword-error.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/CodeGen/builtins-ppc-extractword-error.c b/clang/test/CodeGen/builtins-ppc-extractword-error.c new file mode 100644 index 00000000000..238a80ae109 --- /dev/null +++ b/clang/test/CodeGen/builtins-ppc-extractword-error.c @@ -0,0 +1,15 @@ +// REQUIRES: powerpc-registered-target +// XFAIL: powerpc + +// RUN: %clang -faltivec -target powerpc64le-unknown-unknown -mcpu=power8 \ +// RUN: -Wall -Wextra -c %s +// RUN: %clang -faltivec -target powerpc64-unknown-unknown -mcpu=power8 \ +// RUN: -Wall -Wextra -c %s + +// Expect the compile to fail with "cannot compile this builtin function yet" +extern vector signed int vsi; +extern vector unsigned char vuc; + +vector unsigned long long testExtractWord(void) { + return __builtin_vsx_extractuword(vuc, 12); +} |