Skip to content

Commit af18c3f

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

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
@@ -14132,7 +14132,7 @@ Value *CodeGenFunction::EmitAArch64BuiltinExpr(unsigned BuiltinID,
1413214132
Tys[0] = llvm::FixedVectorType::get(HalfTy, 8);
1413314133
// Op[1] is mfloat8x16_t, but the intrinsic converts only the lower
1413414134
// part of the vector.
14135-
if (BuiltinID == NEON::BI__builtin_neon_vcvt1_low_bf16_mf8_fpm) {
14135+
if (BuiltinID == NEON::BI__builtin_neon_vcvt1_low_f16_mf8_fpm) {
1413614136
Tys[1] = GetNeonType(this, NeonTypeFlags(Type.getEltType(), false,
1413714137
/*isQuad*/ false));
1413814138
Ops[0] = Builder.CreateExtractVector(Tys[1], Ops[0], Builder.getInt64(0));
@@ -14150,7 +14150,7 @@ Value *CodeGenFunction::EmitAArch64BuiltinExpr(unsigned BuiltinID,
1415014150
Tys[0] = llvm::FixedVectorType::get(HalfTy, 8);
1415114151
// Op[1] is mfloat8x16_t, but the intrinsic converts only the lower
1415214152
// part of the vector.
14153-
if (BuiltinID == NEON::BI__builtin_neon_vcvt2_low_bf16_mf8_fpm) {
14153+
if (BuiltinID == NEON::BI__builtin_neon_vcvt2_low_f16_mf8_fpm) {
1415414154
Tys[1] = GetNeonType(this, NeonTypeFlags(Type.getEltType(), false,
1415514155
/*isQuad*/ false));
1415614156
Ops[0] = Builder.CreateExtractVector(Tys[1], Ops[0], Builder.getInt64(0));

0 commit comments

Comments
 (0)