Files
clang-p2996/llvm/test/CodeGen/X86/pr50907.ll
Craig Topper 81f6d7c082 [X86] Tighten up some inline assembly constraint handling.
Don't allow vectors to split into GPRs for 'r' and other scalar
constraints. Prevents assertion in getCopyToPartsVector.

Makes PR50907 give a better error instead of crashing.
2021-06-26 22:57:22 -07:00

15 lines
509 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: not llc -o /dev/null %s 2>&1 | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
; CHECK: error: couldn't allocate input reg for constraint 'r'
define i32 @f2() #0 {
entry:
%retval = alloca i32, align 4
%d = alloca <8 x i16>, align 16
%0 = load <8 x i16>, <8 x i16>* %d, align 16
call void asm sideeffect "", "r,~{dirflag},~{fpsr},~{flags}"(<8 x i16> %0)
%1 = load i32, i32* %retval, align 4
ret i32 %1
}