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
7 changes: 6 additions & 1 deletion clang/test/TableGen/target-builtins-prototype-parser.td
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ def : Builtin {
let Spellings = ["__builtin_08"];
}

def : Builtin {
// CHECK: BUILTIN(__builtin_09, "V2yy", "")
let Prototype = "_Vector<2, __bf16>(__bf16)";
let Spellings = ["__builtin_09"];
}

#ifdef ERROR_EXPECTED_LANES
def : Builtin {
// ERROR_EXPECTED_LANES: :[[# @LINE + 1]]:7: error: Expected number of lanes after '_ExtVector<'
Expand Down Expand Up @@ -112,4 +118,3 @@ def : Builtin {
let Spellings = ["__builtin_test_use_clang_extended_vectors"];
}
#endif

1 change: 1 addition & 0 deletions clang/utils/TableGen/ClangBuiltinsEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ class PrototypeParser {
.Case("__fp16", "h")
.Case("__int128_t", "LLLi")
.Case("_Float16", "x")
.Case("__bf16", "y")
.Case("bool", "b")
.Case("char", "c")
.Case("constant_CFString", "F")
Expand Down
Loading