Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[X86] Reject xmm16-31 in inline asm constraints when AVX512 is disabled
Fixes PR36532 Differential Revision: https://reviews.llvm.org/D43960 llvm-svn: 326596
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
; RUN: not llc -o /dev/null %s 2>&1 | FileCheck %s | ||
target triple = "x86_64--" | ||
|
||
; CHECK: error: couldn't allocate output register for constraint '{xmm16}' | ||
define i64 @blup() { | ||
%v = tail call i64 asm "", "={xmm16},0"(i64 0) | ||
ret i64 %v | ||
} |