HomePhabricator

[SVE] Fix crashes with inline assembly

Authored by david-arm on Dec 1 2020, 5:15 AM.

Description

[SVE] Fix crashes with inline assembly

All the crashes found compiling inline assembly are fixed in this
patch by changing AArch64TargetLowering::getRegForInlineAsmConstraint
to be more resilient to mismatched value and register types. For
example, it makes no sense to request a predicate register for
a nxv2i64 type and so on.

Tests have been added here:

test/CodeGen/AArch64/inline-asm-constraints-bad-sve.ll

Differential Revision: https://reviews.llvm.org/D92554

Details

Committed
david-armDec 8 2020, 5:48 AM
Differential Revision
D92554: [SVE] Fix crashes with inline assembly
Parents
rGbb7d43e7d5f6: Add rsqrt lowering from standard to NVVM
Branches
Unknown
Tags
Unknown