Skip to content

Commit e65fc02

Browse files
[fixup] Add tests, fix calling the wrong LLVM intrinsic
1 parent 96c99b4 commit e65fc02

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
@@ -14053,7 +14053,7 @@ Value *CodeGenFunction::EmitAArch64BuiltinExpr(unsigned BuiltinID,
1405314053
Tys[0] = llvm::FixedVectorType::get(HalfTy, 8);
1405414054
// Op[1] is mfloat8x16_t, but the intrinsic converts only the lower
1405514055
// part of the vector.
14056-
if (BuiltinID == NEON::BI__builtin_neon_vcvt1_low_bf16_mf8_fpm) {
14056+
if (BuiltinID == NEON::BI__builtin_neon_vcvt1_low_f16_mf8_fpm) {
1405714057
Tys[1] = GetNeonType(this, NeonTypeFlags(Type.getEltType(), false,
1405814058
/*isQuad*/ false));
1405914059
Ops[0] = Builder.CreateExtractVector(Tys[1], Ops[0], Builder.getInt64(0));
@@ -14071,7 +14071,7 @@ Value *CodeGenFunction::EmitAArch64BuiltinExpr(unsigned BuiltinID,
1407114071
Tys[0] = llvm::FixedVectorType::get(HalfTy, 8);
1407214072
// Op[1] is mfloat8x16_t, but the intrinsic converts only the lower
1407314073
// part of the vector.
14074-
if (BuiltinID == NEON::BI__builtin_neon_vcvt2_low_bf16_mf8_fpm) {
14074+
if (BuiltinID == NEON::BI__builtin_neon_vcvt2_low_f16_mf8_fpm) {
1407514075
Tys[1] = GetNeonType(this, NeonTypeFlags(Type.getEltType(), false,
1407614076
/*isQuad*/ false));
1407714077
Ops[0] = Builder.CreateExtractVector(Tys[1], Ops[0], Builder.getInt64(0));

0 commit comments

Comments
 (0)