Skip to content

Commit d72f224

Browse files
[fixup] Add tests, fix calling the wrong LLVM intrinsic
1 parent dad918d commit d72f224

File tree

3 files changed

+422
-2
lines changed

3 files changed

+422
-2
lines changed

clang/lib/CodeGen/CGBuiltin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14062,7 +14062,7 @@ Value *CodeGenFunction::EmitAArch64BuiltinExpr(unsigned BuiltinID,
1406214062
Tys[0] = llvm::FixedVectorType::get(HalfTy, 8);
1406314063
// Op[1] is mfloat8x16_t, but the intrinsic converts only the lower
1406414064
// part of the vector.
14065-
if (BuiltinID == NEON::BI__builtin_neon_vcvt1_low_bf16_mf8_fpm) {
14065+
if (BuiltinID == NEON::BI__builtin_neon_vcvt1_low_f16_mf8_fpm) {
1406614066
Tys[1] = GetNeonType(this, NeonTypeFlags(Type.getEltType(), false,
1406714067
/*isQuad*/ false));
1406814068
Ops[0] = Builder.CreateExtractVector(Tys[1], Ops[0], Builder.getInt64(0));
@@ -14080,7 +14080,7 @@ Value *CodeGenFunction::EmitAArch64BuiltinExpr(unsigned BuiltinID,
1408014080
Tys[0] = llvm::FixedVectorType::get(HalfTy, 8);
1408114081
// Op[1] is mfloat8x16_t, but the intrinsic converts only the lower
1408214082
// part of the vector.
14083-
if (BuiltinID == NEON::BI__builtin_neon_vcvt2_low_bf16_mf8_fpm) {
14083+
if (BuiltinID == NEON::BI__builtin_neon_vcvt2_low_f16_mf8_fpm) {
1408414084
Tys[1] = GetNeonType(this, NeonTypeFlags(Type.getEltType(), false,
1408514085
/*isQuad*/ false));
1408614086
Ops[0] = Builder.CreateExtractVector(Tys[1], Ops[0], Builder.getInt64(0));

0 commit comments

Comments
 (0)