summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/builtins-ppc-crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/builtins-ppc-crypto.c')
-rw-r--r--clang/test/CodeGen/builtins-ppc-crypto.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/clang/test/CodeGen/builtins-ppc-crypto.c b/clang/test/CodeGen/builtins-ppc-crypto.c
index 60bdc4982d9..eaf568b09fb 100644
--- a/clang/test/CodeGen/builtins-ppc-crypto.c
+++ b/clang/test/CodeGen/builtins-ppc-crypto.c
@@ -108,6 +108,30 @@ vector unsigned long long test_vpermxord(void)
// CHECK: @llvm.ppc.altivec.crypto.vpermxor
}
+// CHECK-LABEL: test_vpermxorbc
+vector bool char test_vpermxorbc(vector bool char a,
+ vector bool char b,
+ vector bool char c) {
+ return vec_permxor(a, b, c);
+// CHECK: @llvm.ppc.altivec.crypto.vpermxor
+}
+
+// CHECK-LABEL: test_vpermxorsc
+vector signed char test_vpermxorsc(vector signed char a,
+ vector signed char b,
+ vector signed char c) {
+ return vec_permxor(a, b, c);
+// CHECK: @llvm.ppc.altivec.crypto.vpermxor
+}
+
+// CHECK-LABEL: test_vpermxoruc
+vector unsigned char test_vpermxoruc(vector unsigned char a,
+ vector unsigned char b,
+ vector unsigned char c) {
+ return vec_permxor(a, b, c);
+// CHECK: @llvm.ppc.altivec.crypto.vpermxor
+}
+
// CHECK-LABEL: define <2 x i64> @test_vcipher
vector unsigned long long test_vcipher(void)
{
OpenPOWER on IntegriCloud