[llvm] [AMDGPU] Check vector sizes for physical register constraints in inline asm (PR #109955)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 25 05:57:46 PDT 2024
================
@@ -0,0 +1,114 @@
+; RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 < %s 2>&1 | FileCheck -check-prefix=ERR %s
+
+; Diagnose register constraints that are not wide enough.
+
+; ERR: error: couldn't allocate output register for constraint '{v[8:15]}'
+define <9 x i32> @inline_asm_9xi32_in_8v_def() {
+ %asm = call <9 x i32> asm sideeffect "; def $0", "={v[8:15]}"()
+ ret <9 x i32> %asm
----------------
arsenm wrote:
These cases aren't testing the virtual case? Probably should just have the physical case and virtual case in the same function to keep them together
https://github.com/llvm/llvm-project/pull/109955
More information about the llvm-commits
mailing list