Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llvm/lib/Target/AArch64/AArch64CallingConvention.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static bool CC_AArch64_Custom_Block(unsigned &ValNo, MVT &ValVT, MVT &LocVT,
ArrayRef<MCPhysReg> RegList;
if (LocVT.SimpleTy == MVT::i64 || (IsDarwinILP32 && LocVT.SimpleTy == MVT::i32))
RegList = XRegList;
else if (LocVT.SimpleTy == MVT::f16)
else if (LocVT.SimpleTy == MVT::f16 || LocVT.SimpleTy == MVT::bf16)
RegList = HRegList;
else if (LocVT.SimpleTy == MVT::f32 || LocVT.is32BitVector())
RegList = SRegList;
Expand Down
7 changes: 7 additions & 0 deletions llvm/test/CodeGen/AArch64/argument-blocks.ll
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,10 @@ define half @test_f16_blocked([7 x double], [2 x half] %in) {
%val = extractvalue [2 x half] %in, 0
ret half %val
}

define bfloat @test_bf16_blocked([7 x double], [2 x bfloat] %in) {
; CHECK-LABEL: test_bf16_blocked:
; CHECK: ldr h0, [sp]
%val = extractvalue [2 x bfloat] %in, 0
ret bfloat %val
}
Loading