Skip to content

Commit db950e2

Browse files
ghehgxlauko
authored andcommitted
[CIR][CIRGen][Builtin][Neon] Lower neon_vaesmcq_u8 (llvm#1072)
The test case is from [clang/test/CodeGen/neon-crypto.c](https://github.com/llvm/clangir/blob/dbf320e5c3db0410566ae561067c595308870bad/clang/test/CodeGen/neon-crypto.c#L28) Need a dedicated test file as RunOptions has crypto related target features.
1 parent 4e3f48f commit db950e2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenBuiltinAArch64.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -3508,7 +3508,11 @@ mlir::Value CIRGenFunction::buildCommonNeonBuiltinExpr(
35083508
default:
35093509
llvm::errs() << getAArch64SIMDIntrinsicString(builtinID) << " ";
35103510
llvm_unreachable("NYI");
3511-
3511+
case NEON::BI__builtin_neon_vaesmcq_u8: {
3512+
intrincsName = "aarch64.crypto.aesmc";
3513+
argTypes.push_back(vTy);
3514+
break;
3515+
}
35123516
case NEON::BI__builtin_neon_vpadd_v:
35133517
case NEON::BI__builtin_neon_vpaddq_v: {
35143518
intrincsName = mlir::isa<mlir::FloatType>(vTy.getEltType())

0 commit comments

Comments
 (0)