1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

[AVR] Remove an assertion that causes generic CodeGen tests to fail

It was discussed a few years ago and agreed that it makes sense to
remove this assertion as other targets do not perform similar register
size checking in inline assembly constraint logic, so the check just
adds a needless barrier on AVR.

This patch removes the assertion and removes 'XFAIL' from two Generic
CodeGen tests for AVR as a result.
This commit is contained in:
Dylan McKay 2021-02-05 02:02:49 +13:00
parent 131bb74242
commit 45fc9d7bf4
3 changed files with 0 additions and 5 deletions

View File

@ -1938,7 +1938,6 @@ AVRTargetLowering::getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI,
if (VT == MVT::i8)
return std::make_pair(0U, &AVR::GPR8RegClass);
assert(VT == MVT::i16 && "inline asm constraint too large");
return std::make_pair(0U, &AVR::DREGSRegClass);
case 't': // Temporary register: r0.
return std::make_pair(unsigned(AVR::R0), &AVR::GPR8RegClass);

View File

@ -4,7 +4,6 @@
; PR1557
; Bug: PR31336
; XFAIL: avr
define i32 @stuff(i32, ...) {
%foo = alloca i8*

View File

@ -1,8 +1,5 @@
; RUN: llc -O2 -no-integrated-as < %s | FileCheck %s
; Test uses 32-bit registers which aren't supported on AVR.
; XFAIL: avr
@G = common global i32 0, align 4
define i32 @foo(i8* %p) nounwind uwtable {