[SveEmitter] Fix encoding/decoding of SVETypeFlags
authorSander de Smalen <sander.desmalen@arm.com>
Tue, 14 Apr 2020 14:31:20 +0000 (15:31 +0100)
committerSander de Smalen <sander.desmalen@arm.com>
Tue, 14 Apr 2020 14:48:28 +0000 (15:48 +0100)
commitf6ea026f179a02cd335d71e4800b4d67c25c006b
tree45b38ef72704f2662bb1151797becce1849e9b7e
parent17a68c61a952032a8b4363b542606dc0b6b5dbd5
[SveEmitter] Fix encoding/decoding of SVETypeFlags

Summary:
This issue was introduced when reworking D75861. The bug isn't
actually hit with current unit tests because the contiguous loads/stores
infer the EltType and the MemEltType from the pointer and result, rather
than using the flags. But it will be needed for other intrinsics, such as
gather/scatter.

Reviewers: SjoerdMeijer, Andrzej

Reviewed By: SjoerdMeijer

Subscribers: andwar, tschuett, cfe-commits, llvm-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D76617
clang/include/clang/Basic/TargetBuiltins.h
clang/include/clang/Basic/arm_sve.td
clang/utils/TableGen/SveEmitter.cpp