[llvm] [CodeGen][NFC] Remove contractions in error messages (PR #195308)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 1 10:48:22 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-powerpc

@llvm/pr-subscribers-backend-arm

Author: Bill Wendling (bwendling)

<details>
<summary>Changes</summary>

We shouldn't use c'tract'ns so m'ch.

---

Patch is 65.51 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/195308.diff


45 Files Affected:

- (modified) llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp (+6-6) 
- (modified) llvm/test/CodeGen/AArch64/aarch64-sve-asm-negative.ll (+1-1) 
- (modified) llvm/test/CodeGen/AArch64/asm-ld1-wrong-constraint.ll (+2-2) 
- (modified) llvm/test/CodeGen/AArch64/inline-asm-constraints-bad-sve.ll (+3-3) 
- (modified) llvm/test/CodeGen/AArch64/inlineasm-illegal-type.ll (+4-4) 
- (modified) llvm/test/CodeGen/AMDGPU/inline-asm-av-constraint-err.ll (+4-4) 
- (modified) llvm/test/CodeGen/AMDGPU/inline-asm-av-constraint.ll (+16-16) 
- (modified) llvm/test/CodeGen/AMDGPU/inline-asm-out-of-bounds-register.ll (+16-16) 
- (modified) llvm/test/CodeGen/AMDGPU/inline-asm-vgpr-range-unsupported-width.ll (+1-1) 
- (modified) llvm/test/CodeGen/AMDGPU/inlineasm-illegal-type.ll (+11-11) 
- (modified) llvm/test/CodeGen/AMDGPU/inlineasm-mismatched-size-error.ll (+29-29) 
- (modified) llvm/test/CodeGen/AMDGPU/inlineasm-v16.ll (+20-20) 
- (modified) llvm/test/CodeGen/AMDGPU/invalid-inline-asm-constraint-crash.ll (+3-3) 
- (modified) llvm/test/CodeGen/AMDGPU/reject-agpr-usage-before-gfx908.ll (+1-1) 
- (modified) llvm/test/CodeGen/ARM/2013-11-08-inline-asm-neon-array.ll (+1-1) 
- (modified) llvm/test/CodeGen/ARM/bad-constraint.ll (+3-3) 
- (modified) llvm/test/CodeGen/ARM/indirect-reg-input.ll (+1-1) 
- (modified) llvm/test/CodeGen/ARM/inline-diagnostics.ll (+1-1) 
- (modified) llvm/test/CodeGen/Hexagon/inline-asm-bad-constraint.ll (+1-1) 
- (modified) llvm/test/CodeGen/Hexagon/inline-asm-error.ll (+1-1) 
- (modified) llvm/test/CodeGen/LoongArch/inline-asm-constraint-error.ll (+3-3) 
- (modified) llvm/test/CodeGen/LoongArch/inline-asm-reg-names-error.ll (+2-2) 
- (modified) llvm/test/CodeGen/LoongArch/inline-asm-reg-names-f-error.ll (+2-2) 
- (modified) llvm/test/CodeGen/Mips/constraint-c-err.ll (+1-1) 
- (modified) llvm/test/CodeGen/PowerPC/crbit-asm-disabled.ll (+1-1) 
- (modified) llvm/test/CodeGen/PowerPC/vec-asm-disabled.ll (+4-4) 
- (modified) llvm/test/CodeGen/RISCV/inline-asm-invalid.ll (+16-16) 
- (modified) llvm/test/CodeGen/SPARC/inlineasm-bad.ll (+3-3) 
- (modified) llvm/test/CodeGen/SystemZ/inline-asm-f-constraint-softfloat.ll (+1-1) 
- (modified) llvm/test/CodeGen/SystemZ/inline-asm-v-constraint-novecfacility.ll (+1-1) 
- (modified) llvm/test/CodeGen/SystemZ/soft-float-inline-asm-01.ll (+1-1) 
- (modified) llvm/test/CodeGen/SystemZ/soft-float-inline-asm-02.ll (+1-1) 
- (modified) llvm/test/CodeGen/SystemZ/soft-float-inline-asm-03.ll (+1-1) 
- (modified) llvm/test/CodeGen/SystemZ/soft-float-inline-asm-04.ll (+1-1) 
- (modified) llvm/test/CodeGen/X86/asm-reject-reg-type-mismatch.ll (+4-4) 
- (modified) llvm/test/CodeGen/X86/asm-reject-rex.ll (+3-3) 
- (modified) llvm/test/CodeGen/X86/asm-reject-vk32-vk64.ll (+4-4) 
- (modified) llvm/test/CodeGen/X86/asm-reject-x87-int.ll (+1-1) 
- (modified) llvm/test/CodeGen/X86/asm-reject-xmm16.ll (+1-1) 
- (modified) llvm/test/CodeGen/X86/inline-asm-avx512f-x-constraint.ll (+2-2) 
- (modified) llvm/test/CodeGen/X86/inline-asm-x-i128.ll (+1-1) 
- (modified) llvm/test/CodeGen/X86/physreg-pairs-error.ll (+1-1) 
- (modified) llvm/test/CodeGen/X86/pr37359.ll (+1-1) 
- (modified) llvm/test/CodeGen/X86/pr43157.ll (+1-1) 
- (modified) llvm/test/CodeGen/X86/pr50907.ll (+1-1) 


``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 3deb8b4f2cf22..458fd21c5ab6d 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -10390,7 +10390,7 @@ static bool prepareDAGLevelOperands(ConstraintDecisionInfo &Info,
         // C_RegisterClass, and a target-defined fashion for
         // C_Immediate/C_Other). Find a register that we can use.
         if (OpInfo.AssignedRegs.Regs.empty()) {
-          Info.ErrorMsg << "couldn't allocate output register for "
+          Info.ErrorMsg << "could not allocate output register for "
                         << "constraint '" << OpInfo.ConstraintCode << "'";
           return true;
         }
@@ -10420,8 +10420,8 @@ static bool prepareDAGLevelOperands(ConstraintDecisionInfo &Info,
         if (Flag.isRegDefKind() || Flag.isRegDefEarlyClobberKind()) {
           if (OpInfo.isIndirect) {
             // This happens on gcc/testsuite/gcc.dg/pr8788-1.c
-            Info.ErrorMsg << "inline asm not supported yet: don't know how "
-                          << "to handle tied indirect register inputs";
+            Info.ErrorMsg << "inline asm not supported yet: cannot handle "
+                          << "tied indirect register inputs";
             return true;
           }
 
@@ -10552,14 +10552,14 @@ static bool prepareDAGLevelOperands(ConstraintDecisionInfo &Info,
 
       // TODO: Support this.
       if (OpInfo.isIndirect) {
-        Info.ErrorMsg << "Don't know how to handle indirect register inputs "
-                      << "yet for constraint '" << OpInfo.ConstraintCode << "'";
+        Info.ErrorMsg << "cannot handle indirect register inputs yet for "
+                      << "constraint '" << OpInfo.ConstraintCode << "'";
         return true;
       }
 
       // Copy the input into the appropriate registers.
       if (OpInfo.AssignedRegs.Regs.empty()) {
-        Info.ErrorMsg << "couldn't allocate input reg for constraint '"
+        Info.ErrorMsg << "could not allocate input reg for constraint '"
                       << OpInfo.ConstraintCode << "'";
         return true;
       }
diff --git a/llvm/test/CodeGen/AArch64/aarch64-sve-asm-negative.ll b/llvm/test/CodeGen/AArch64/aarch64-sve-asm-negative.ll
index ad483f40efbf1..e592398dd8211 100644
--- a/llvm/test/CodeGen/AArch64/aarch64-sve-asm-negative.ll
+++ b/llvm/test/CodeGen/AArch64/aarch64-sve-asm-negative.ll
@@ -5,7 +5,7 @@
 ; constraint be used with a Neon register.
 
 ; Function Attrs: nounwind readnone
-; CHECK: error: couldn't allocate input reg for constraint 'y'
+; CHECK: error: could not allocate input reg for constraint 'y'
 define <4 x i32> @test_neon(<4 x i32> %in1, <4 x i32> %in2) {
   %1 = tail call <4 x i32> asm "add $0.4s, $1.4s, $2.4s", "=w,w,y"(<4 x i32> %in1, <4 x i32> %in2)
   ret <4 x i32> %1
diff --git a/llvm/test/CodeGen/AArch64/asm-ld1-wrong-constraint.ll b/llvm/test/CodeGen/AArch64/asm-ld1-wrong-constraint.ll
index b62c18ccfbcd2..ce9e4b219f578 100644
--- a/llvm/test/CodeGen/AArch64/asm-ld1-wrong-constraint.ll
+++ b/llvm/test/CodeGen/AArch64/asm-ld1-wrong-constraint.ll
@@ -11,7 +11,7 @@ define i64 @rdar130887714(ptr noundef %0) {
   store ptr %0, ptr %2, align 8
   %4 = load ptr, ptr %2, align 8
   call void asm sideeffect "ld1 { $0.2d, ${0:T}.2d, ${0:U}.2d, ${0:V}.2d} , [$1]", "*w,r"(ptr elementtype(%struct.uint64x2x4_t) %3, ptr %4) #0, !srcloc !0
-; CHECK: error: Don't know how to handle indirect register inputs yet for constraint 'w' at line 250
+; CHECK: error: cannot handle indirect register inputs yet for constraint 'w' at line 250
 
   %5 = getelementptr inbounds %struct.uint64x2x4_t, ptr %3, i32 0, i32 0
   %6 = getelementptr inbounds [4 x <2 x i64>], ptr %5, i64 0, i64 0
@@ -20,4 +20,4 @@ define i64 @rdar130887714(ptr noundef %0) {
   ret i64 %8
 }
 
-!0 = !{i64 250}
\ No newline at end of file
+!0 = !{i64 250}
diff --git a/llvm/test/CodeGen/AArch64/inline-asm-constraints-bad-sve.ll b/llvm/test/CodeGen/AArch64/inline-asm-constraints-bad-sve.ll
index e600bbaee6cba..4e5bf1b960695 100644
--- a/llvm/test/CodeGen/AArch64/inline-asm-constraints-bad-sve.ll
+++ b/llvm/test/CodeGen/AArch64/inline-asm-constraints-bad-sve.ll
@@ -3,9 +3,9 @@
 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
 target triple = "aarch64-unknown-linux-gnu"
 
-; CHECK: error: couldn't allocate input reg for constraint 'Upa'
-; CHECK: error: couldn't allocate input reg for constraint 'r'
-; CHECK: error: couldn't allocate output register for constraint 'w'
+; CHECK: error: could not allocate input reg for constraint 'Upa'
+; CHECK: error: could not allocate input reg for constraint 'r'
+; CHECK: error: could not allocate output register for constraint 'w'
 ; CHECK: error: unknown token in expression
 
 define <vscale x 16 x i1> @foo1(ptr %in) {
diff --git a/llvm/test/CodeGen/AArch64/inlineasm-illegal-type.ll b/llvm/test/CodeGen/AArch64/inlineasm-illegal-type.ll
index e75742b77447d..3c9a6904b920c 100644
--- a/llvm/test/CodeGen/AArch64/inlineasm-illegal-type.ll
+++ b/llvm/test/CodeGen/AArch64/inlineasm-illegal-type.ll
@@ -1,9 +1,9 @@
 ;RUN:  not llc -mtriple=aarch64-linux-gnu -mattr=-fp-armv8 < %s 2>&1 | FileCheck %s
 
-; CHECK: error: couldn't allocate output register for constraint '{d0}'
-; CHECK: error: couldn't allocate output register for constraint 'w'
-; CHECK: error: couldn't allocate input reg for constraint 'w'
-; CHECK: error: couldn't allocate input reg for constraint 'w'
+; CHECK: error: could not allocate output register for constraint '{d0}'
+; CHECK: error: could not allocate output register for constraint 'w'
+; CHECK: error: could not allocate input reg for constraint 'w'
+; CHECK: error: could not allocate input reg for constraint 'w'
 
 define hidden double @test1(double %xx) local_unnamed_addr #0 {
 entry:
diff --git a/llvm/test/CodeGen/AMDGPU/inline-asm-av-constraint-err.ll b/llvm/test/CodeGen/AMDGPU/inline-asm-av-constraint-err.ll
index 8b45f0de2300e..e11b140856026 100644
--- a/llvm/test/CodeGen/AMDGPU/inline-asm-av-constraint-err.ll
+++ b/llvm/test/CodeGen/AMDGPU/inline-asm-av-constraint-err.ll
@@ -2,25 +2,25 @@
 
 ; Make sure illegal type uses are correctly diagnosed
 
-; CHECK: error: couldn't allocate input reg for constraint 'VA'
+; CHECK: error: could not allocate input reg for constraint 'VA'
 define void @use_A_i8(i8 %x) {
   call void asm sideeffect "; use $0", "^VA"(i8 %x)
   ret void
 }
 
-; CHECK: error: couldn't allocate output register for constraint 'VA'
+; CHECK: error: could not allocate output register for constraint 'VA'
 define i8 @def_A_i8() {
   %ret = call i8 asm sideeffect "; def $0", "=^VA"()
   ret i8 %ret
 }
 
-; CHECK: error: couldn't allocate input reg for constraint 'VA'
+; CHECK: error: could not allocate input reg for constraint 'VA'
 define void @use_A_i1(i1 %x) {
   call void asm sideeffect "; use $0", "^VA"(i1 %x)
   ret void
 }
 
-; CHECK: error: couldn't allocate output register for constraint 'VA'
+; CHECK: error: could not allocate output register for constraint 'VA'
 define i1 @def_A_i1() {
   %ret = call i1 asm sideeffect "; def $0", "=^VA"()
   ret i1 %ret
diff --git a/llvm/test/CodeGen/AMDGPU/inline-asm-av-constraint.ll b/llvm/test/CodeGen/AMDGPU/inline-asm-av-constraint.ll
index 407a802545906..14dfd9fce983c 100644
--- a/llvm/test/CodeGen/AMDGPU/inline-asm-av-constraint.ll
+++ b/llvm/test/CodeGen/AMDGPU/inline-asm-av-constraint.ll
@@ -3,7 +3,7 @@
 ; RUN: llc -mtriple=amdgcn -mcpu=gfx90a < %s | FileCheck %s
 
 ; FIXME: Shouldn't emit and
-; ERR: error: couldn't allocate input reg for constraint 'VA'
+; ERR: error: could not allocate input reg for constraint 'VA'
 define void @use_A_i16(i16 %x) {
 ; CHECK-LABEL: use_A_i16:
 ; CHECK:       ; %bb.0:
@@ -17,7 +17,7 @@ define void @use_A_i16(i16 %x) {
   ret void
 }
 
-; ERR: error: couldn't allocate input reg for constraint 'VA'
+; ERR: error: could not allocate input reg for constraint 'VA'
 define void @use_A_f16(half %x) {
 ; CHECK-LABEL: use_A_f16:
 ; CHECK:       ; %bb.0:
@@ -30,7 +30,7 @@ define void @use_A_f16(half %x) {
   ret void
 }
 
-; ERR: error: couldn't allocate input reg for constraint 'VA'
+; ERR: error: could not allocate input reg for constraint 'VA'
 define void @use_A_bf16(bfloat %x) {
 ; CHECK-LABEL: use_A_bf16:
 ; CHECK:       ; %bb.0:
@@ -43,7 +43,7 @@ define void @use_A_bf16(bfloat %x) {
   ret void
 }
 
-; ERR: error: couldn't allocate input reg for constraint 'VA'
+; ERR: error: could not allocate input reg for constraint 'VA'
 define void @use_A_v2i16(<2 x i16> %x) {
 ; CHECK-LABEL: use_A_v2i16:
 ; CHECK:       ; %bb.0:
@@ -56,7 +56,7 @@ define void @use_A_v2i16(<2 x i16> %x) {
   ret void
 }
 
-; ERR: error: couldn't allocate input reg for constraint 'VA'
+; ERR: error: could not allocate input reg for constraint 'VA'
 define void @use_A_v2f16(<2 x half> %x) {
 ; CHECK-LABEL: use_A_v2f16:
 ; CHECK:       ; %bb.0:
@@ -69,7 +69,7 @@ define void @use_A_v2f16(<2 x half> %x) {
   ret void
 }
 
-; ERR: error: couldn't allocate input reg for constraint 'VA'
+; ERR: error: could not allocate input reg for constraint 'VA'
 define void @use_A_v2bf16(<2 x bfloat> %x) {
 ; CHECK-LABEL: use_A_v2bf16:
 ; CHECK:       ; %bb.0:
@@ -82,7 +82,7 @@ define void @use_A_v2bf16(<2 x bfloat> %x) {
   ret void
 }
 
-; ERR: error: couldn't allocate input reg for constraint 'VA'
+; ERR: error: could not allocate input reg for constraint 'VA'
 define void @use_A_i32(i32 %x) {
 ; CHECK-LABEL: use_A_i32:
 ; CHECK:       ; %bb.0:
@@ -95,7 +95,7 @@ define void @use_A_i32(i32 %x) {
   ret void
 }
 
-; ERR: error: couldn't allocate input reg for constraint 'VA'
+; ERR: error: could not allocate input reg for constraint 'VA'
 define void @use_A_f32(float %x) {
 ; CHECK-LABEL: use_A_f32:
 ; CHECK:       ; %bb.0:
@@ -108,7 +108,7 @@ define void @use_A_f32(float %x) {
   ret void
 }
 
-; ERR: error: couldn't allocate input reg for constraint 'VA'
+; ERR: error: could not allocate input reg for constraint 'VA'
 define void @use_A_i64(i64 %x) {
 ; CHECK-LABEL: use_A_i64:
 ; CHECK:       ; %bb.0:
@@ -121,7 +121,7 @@ define void @use_A_i64(i64 %x) {
   ret void
 }
 
-; ERR: error: couldn't allocate input reg for constraint 'VA'
+; ERR: error: could not allocate input reg for constraint 'VA'
 define void @use_A_f64(double %x) {
 ; CHECK-LABEL: use_A_f64:
 ; CHECK:       ; %bb.0:
@@ -134,7 +134,7 @@ define void @use_A_f64(double %x) {
   ret void
 }
 
-; ERR: error: couldn't allocate input reg for constraint 'VA'
+; ERR: error: could not allocate input reg for constraint 'VA'
 define void @use_A_p1(ptr addrspace(1) %x) {
 ; CHECK-LABEL: use_A_p1:
 ; CHECK:       ; %bb.0:
@@ -147,7 +147,7 @@ define void @use_A_p1(ptr addrspace(1) %x) {
   ret void
 }
 
-; ERR: error: couldn't allocate input reg for constraint 'VA'
+; ERR: error: could not allocate input reg for constraint 'VA'
 define void @use_A_v32i32(<32 x i32> %x) {
 ; CHECK-LABEL: use_A_v32i32:
 ; CHECK:       ; %bb.0:
@@ -162,7 +162,7 @@ define void @use_A_v32i32(<32 x i32> %x) {
   ret void
 }
 
-; ERR: error: couldn't allocate input reg for constraint 'VA'
+; ERR: error: could not allocate input reg for constraint 'VA'
 define void @use_A_v32f32(<32 x float> %x) {
 ; CHECK-LABEL: use_A_v32f32:
 ; CHECK:       ; %bb.0:
@@ -177,7 +177,7 @@ define void @use_A_v32f32(<32 x float> %x) {
   ret void
 }
 
-; ERR: error: couldn't allocate output register for constraint 'VA'
+; ERR: error: could not allocate output register for constraint 'VA'
 define i16 @def_A_i16() {
 ; CHECK-LABEL: def_A_i16:
 ; CHECK:       ; %bb.0:
@@ -190,7 +190,7 @@ define i16 @def_A_i16() {
   ret i16 %ret
 }
 
-; ERR: error: couldn't allocate output register for constraint 'VA'
+; ERR: error: could not allocate output register for constraint 'VA'
 define i32 @def_A_i32() {
 ; CHECK-LABEL: def_A_i32:
 ; CHECK:       ; %bb.0:
@@ -203,7 +203,7 @@ define i32 @def_A_i32() {
   ret i32 %ret
 }
 
-; ERR: error: couldn't allocate output register for constraint 'VA'
+; ERR: error: could not allocate output register for constraint 'VA'
 define ptr addrspace(1) @def_A_p1() {
 ; CHECK-LABEL: def_A_p1:
 ; CHECK:       ; %bb.0:
diff --git a/llvm/test/CodeGen/AMDGPU/inline-asm-out-of-bounds-register.ll b/llvm/test/CodeGen/AMDGPU/inline-asm-out-of-bounds-register.ll
index 8baecde23492c..d5bf18264975f 100644
--- a/llvm/test/CodeGen/AMDGPU/inline-asm-out-of-bounds-register.ll
+++ b/llvm/test/CodeGen/AMDGPU/inline-asm-out-of-bounds-register.ll
@@ -1,97 +1,97 @@
 ; RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=bonaire -filetype=null %s 2>&1 | FileCheck -implicit-check-not=error %s
 ; RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1250 -filetype=null %s 2>&1 | FileCheck -implicit-check-not=error %s
 
-; CHECK: error: couldn't allocate output register for constraint '{v256}'
+; CHECK: error: could not allocate output register for constraint '{v256}'
 define void @out_of_bounds_vgpr32_def() {
   %v = tail call i32 asm sideeffect "v_mov_b32 $0, -1", "={v256}"()
   ret void
 }
 
-; CHECK: error: couldn't allocate output register for constraint '{v[255:256]}'
+; CHECK: error: could not allocate output register for constraint '{v[255:256]}'
 define void @out_of_bounds_vgpr64_def_high_tuple() {
   %v = tail call i32 asm sideeffect "v_mov_b32 $0, -1", "={v[255:256]}"()
   ret void
 }
 
-; CHECK: error: couldn't allocate output register for constraint '{v[256:257]}'
+; CHECK: error: could not allocate output register for constraint '{v[256:257]}'
 define void @out_of_bounds_vgpr64_def_low_tuple() {
   %v = tail call i32 asm sideeffect "v_mov_b32 $0, -1", "={v[256:257]}"()
   ret void
 }
 
-; CHECK: error: couldn't allocate input reg for constraint '{v256}'
+; CHECK: error: could not allocate input reg for constraint '{v256}'
 define void @out_of_bounds_vgpr32_use() {
   %v = tail call i32 asm sideeffect "v_mov_b32 %0, %1", "=v,{v256}"(i32 123)
   ret void
 }
 
-; CHECK: error: couldn't allocate input reg for constraint '{v[255:256]}'
+; CHECK: error: could not allocate input reg for constraint '{v[255:256]}'
 define void @out_of_bounds_vgpr64_high_tuple() {
   tail call void asm sideeffect "; use %0", "{v[255:256]}"(i64 123)
   ret void
 }
 
-; CHECK: error: couldn't allocate input reg for constraint '{v[256:257]}'
+; CHECK: error: could not allocate input reg for constraint '{v[256:257]}'
 define void @out_of_bounds_vgpr64_low_tuple() {
   tail call void asm sideeffect "; use %0", "{v[256:257]}"(i64 123)
   ret void
 }
 
-; CHECK: error: couldn't allocate input reg for constraint '{v[1:0]}'
+; CHECK: error: could not allocate input reg for constraint '{v[1:0]}'
 define void @vgpr_tuple_swapped() {
   tail call void asm sideeffect "; use %0", "{v[1:0]}"(i64 123)
   ret void
 }
 
-; CHECK: error: couldn't allocate input reg for constraint '{v4294967295}'
+; CHECK: error: could not allocate input reg for constraint '{v4294967295}'
 define void @vgpr_uintmax() {
   tail call void asm sideeffect "; use %0", "{v4294967295}"(i64 123)
   ret void
 }
 
-; CHECK: error: couldn't allocate input reg for constraint '{v4294967296}'
+; CHECK: error: could not allocate input reg for constraint '{v4294967296}'
 define void @vgpr_uintmax_p1() {
   tail call void asm sideeffect "; use %0", "{v4294967296}"(i64 123)
   ret void
 }
 
-; CHECK: error: couldn't allocate input reg for constraint '{v[4294967295:4294967296]}'
+; CHECK: error: could not allocate input reg for constraint '{v[4294967295:4294967296]}'
 define void @vgpr_tuple_uintmax() {
   tail call void asm sideeffect "; use %0", "{v[4294967295:4294967296]}"(i64 123)
   ret void
 }
 
-; CHECK: error: couldn't allocate input reg for constraint '{v[0:4294967295]}'
+; CHECK: error: could not allocate input reg for constraint '{v[0:4294967295]}'
 define void @vgpr_tuple_0_uintmax() {
   tail call void asm sideeffect "; use %0", "{v[0:4294967295]}"(i64 123)
   ret void
 }
 
-; CHECK: error: couldn't allocate input reg for constraint '{v[0:4294967296]}'
+; CHECK: error: could not allocate input reg for constraint '{v[0:4294967296]}'
 define void @vgpr_tuple_0_uintmax_p1() {
   tail call void asm sideeffect "; use %0", "{v[0:4294967296]}"(i64 123)
   ret void
 }
 
-; CHECK: error: couldn't allocate input reg for constraint '{v[4294967264:4294967295]}'
+; CHECK: error: could not allocate input reg for constraint '{v[4294967264:4294967295]}'
 define void @vgpr32_last_is_uintmax() {
   tail call void asm sideeffect "; use %0", "{v[4294967264:4294967295]}"(i64 123)
   ret void
 }
 
-; CHECK: error: couldn't allocate input reg for constraint '{v[4294967265:4294967296]}'
+; CHECK: error: could not allocate input reg for constraint '{v[4294967265:4294967296]}'
 define void @vgpr32_last_is_uintmax_p1() {
   tail call void asm sideeffect "; use %0", "{v[4294967265:4294967296]}"(i64 123)
   ret void
 }
 
-; CHECK: error: couldn't allocate input reg for constraint '{v[2:2147483651]}'
+; CHECK: error: could not allocate input reg for constraint '{v[2:2147483651]}'
 define void @overflow_bitwidth_0() {
   tail call void asm sideeffect "; use %0", "{v[2:2147483651]}"(i64 123)
   ret void
 }
 
-; CHECK: error: couldn't allocate input reg for constraint '{v[2147483635:2147483651]}'
+; CHECK: error: could not allocate input reg for constraint '{v[2147483635:2147483651]}'
 define void @overflow_bitwidth_1() {
   tail call void asm sideeffect "; use %0", "{v[2147483635:2147483651]}"(i64 123)
   ret void
diff --git a/llvm/test/CodeGen/AMDGPU/inline-asm-vgpr-range-unsupported-width.ll b/llvm/test/CodeGen/AMDGPU/inline-asm-vgpr-range-unsupported-width.ll
index 4596c18643f5e..9454b2f769a7b 100644
--- a/llvm/test/CodeGen/AMDGPU/inline-asm-vgpr-range-unsupported-width.ll
+++ b/llvm/test/CodeGen/AMDGPU/inline-asm-vgpr-range-unsupported-width.ll
@@ -3,7 +3,7 @@
 ; This is a negative test: the VGPR physical register range below requires
 ; a 13-register (416-bit) VGPR, which doesn't exist.
 
-; CHECK: error: couldn't allocate output register for constraint '{v[0:12]}'
+; CHECK: error: could not allocate output register for constraint '{v[0:12]}'
 
 define amdgpu_kernel void @k() {
 entry:
diff --git a/llvm/test/CodeGen/AMDGPU/inlineasm-illegal-type.ll b/llvm/test/CodeGen/AMDGPU/inlineasm-illegal-type.ll
index 535e02cf80c2c..f72bf9d604491 100644
--- a/llvm/test/CodeGen/AMDGPU/inlineasm-illegal-type.ll
+++ b/llvm/test/CodeGen/AMDGPU/inlineasm-illegal-type.ll
@@ -2,30 +2,30 @@
 ; RUN: not llc -mtriple=amdgcn -mcpu=tonga < %s 2>&1 | FileCheck -check-prefix=GCN %s
 ; RUN: not llc -mtriple=amdgcn -mcpu=tahiti < %s 2>&1 | FileCheck -check-prefix=GCN -check-prefix=SICI %s
 
-; GCN: error: couldn't allocate output register for constraint 's'
-; GCN: error: couldn't allocate input reg for constraint 's'
+; GCN: error: could not allocate output register for constraint 's'
+; GCN: error: could not allocate input reg for constraint 's'
 define amdgpu_kernel void @s_input_output_i8() {
   %v = tail call i8 asm sideeffect "s_mov_b32 $0, -1", "=s"()
   tail call void asm sideeffect "; use $0", "s"(i8 %v)
   ret void
 }
 
-; GCN: error: couldn't allocate output register for constraint 'v'
-; GCN: error: couldn't allocate input reg for constraint 'v'
+; GCN: error: could not allocate output register for constraint 'v'
+; GCN: error: could not allocate input reg for constraint 'v'
 define amdgpu_kernel void @v_input_output_i8() {
   %v = tail call i8 asm sideeffect "v_mov_b32 $0, -1", "=v"()
   tail call void asm sideeffect "; use $0", "v"(i8 %v)
   ret void
 }
 
-; GCN: error: couldn't allocate input reg for constraint 'v'
+; GCN: error: could not allocate input reg for constraint 'v'
 define amdgpu_kernel void @v_input_empty_struct() {
   call void asm "", "v"({} poison)
   ret void
 }
 
-; SICI: error: couldn't allocate output register for constraint 's'
-; SICI: error: couldn't allocate input reg for constraint 's'
+; SICI: error: could not allocate output register for constraint 's'
+; SICI: error: could not allocate input reg for constraint 's'
 ; VI-NOT: error
 define amdgpu_kernel void @s_input_output_v2f16() {
   %v = tail call <2 x half> asm sideeffect "s_mov_b32 $0, -1", "=s"()
@@ -33,8 +33,8 @@ define amdgpu_kernel void @s_input_output_v2f16() {
   ret void
 }
 
-; SICI: error: couldn't allocate output register for constraint 'v'
-; SICI: error: couldn't allocate input reg for constraint 'v'
+; SICI: error: c...
[truncated]

``````````

</details>


https://github.com/llvm/llvm-project/pull/195308


More information about the llvm-commits mailing list