brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.6 KiB · 6a1f981 Raw
43 lines · c
1// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py2// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -target-feature +sve-aes -O1 -Werror -Wall -emit-llvm -o - %s | FileCheck %s3// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -target-feature +sve-aes -O1 -Werror -Wall -emit-llvm -o - -x c++ %s | FileCheck %s -check-prefix=CPP-CHECK4// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +sve-aes -O1 -Werror -Wall -emit-llvm -o - %s | FileCheck %s5// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +sve-aes -O1 -Werror -Wall -emit-llvm -o - -x c++ %s | FileCheck %s -check-prefix=CPP-CHECK6 7// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sme -target-feature +ssve-aes -O1 -Werror -Wall -emit-llvm -o - %s | FileCheck %s8// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sme -target-feature +ssve-aes -O1 -Werror -Wall -emit-llvm -o - -x c++ %s | FileCheck %s -check-prefix=CPP-CHECK9// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sme -target-feature +ssve-aes -O1 -Werror -Wall -emit-llvm -o - %s | FileCheck %s10// RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sme -target-feature +ssve-aes -O1 -Werror -Wall -emit-llvm -o - -x c++ %s | FileCheck %s -check-prefix=CPP-CHECK11 12// REQUIRES: aarch64-registered-target13 14#include <arm_sve.h>15 16#ifdef SVE_OVERLOADED_FORMS17// A simple used,unused... macro, long enough to represent any SVE builtin.18#define SVE_ACLE_FUNC(A1,A2_UNUSED,A3,A4_UNUSED) A1##A319#else20#define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A421#endif22 23#if defined(__ARM_FEATURE_SME)24#define STREAMING __arm_streaming25#else26#define STREAMING27#endif28 29// CHECK-LABEL: @test_svaese_u8(30// CHECK-NEXT:  entry:31// CHECK-NEXT:    [[TMP0:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.aese(<vscale x 16 x i8> [[OP1:%.*]], <vscale x 16 x i8> [[OP2:%.*]])32// CHECK-NEXT:    ret <vscale x 16 x i8> [[TMP0]]33//34// CPP-CHECK-LABEL: @_Z14test_svaese_u8u11__SVUint8_tS_(35// CPP-CHECK-NEXT:  entry:36// CPP-CHECK-NEXT:    [[TMP0:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.aese(<vscale x 16 x i8> [[OP1:%.*]], <vscale x 16 x i8> [[OP2:%.*]])37// CPP-CHECK-NEXT:    ret <vscale x 16 x i8> [[TMP0]]38//39svuint8_t test_svaese_u8(svuint8_t op1, svuint8_t op2) STREAMING40{41  return SVE_ACLE_FUNC(svaese,_u8,,)(op1, op2);42}43