diff options
author | Simon Tatham <simon.tatham@arm.com> | 2020-08-07 10:26:29 +0100 |
---|---|---|
committer | Simon Tatham <simon.tatham@arm.com> | 2020-08-07 11:25:19 +0100 |
commit | 1d782942500b2cbc9765ccf16264bb498850cefb (patch) | |
tree | 10c86e28183c234f9cfcdacf2e3bdbf8fcb5e427 /lldb/packages/Python/lldbsuite/test/configuration.py | |
parent | 24cca30f7f0de49e77af7e8c7719680daec2418e (diff) | |
download | llvm-1d782942500b2cbc9765ccf16264bb498850cefb.zip llvm-1d782942500b2cbc9765ccf16264bb498850cefb.tar.gz llvm-1d782942500b2cbc9765ccf16264bb498850cefb.tar.bz2 |
[Sema][BFloat] Forbid arithmetic on vectors of bfloat.
Vectors of bfloat are a storage format only; you're supposed to
explicitly convert them to a wider type to do arithmetic on them.
But currently, if you write something like
bfloat16x4_t test(bfloat16x4_t a, bfloat16x4_t b) { return a + b; }
then the clang frontend accepts it without error, and (ARM or AArch64)
isel fails to generate code for it.
Added a rule in Sema that forbids the attempt from even being made,
and tests that check it. In particular, we also outlaw arithmetic
between vectors of bfloat and any other vector type.
Patch by Luke Cheeseman.
Reviewed By: LukeGeeson
Differential Revision: https://reviews.llvm.org/D85009
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/configuration.py')
0 files changed, 0 insertions, 0 deletions