[llvm] Fix error in `call-abi-compatibility.ll` (PR #88375)
Wang Qiang via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 11 03:06:51 PDT 2024
https://github.com/ReVe1uv created https://github.com/llvm/llvm-project/pull/88375
Fix test error:
/bin/opt: <stdin>:116:3: error: instruction expected to be numbered '%1' %3 = tail call <8 x i64> asm "vpaddb\09$($3, $2, $0 {$1}", "=v,^Yk,v,v,0,~{dirflag},~{fpsr},~{flags}"(i64 %k, <8 x i64> %a, <8 x i64> %b, <8 x i64> %src) #2
>From 031eccfcd84cd86a8329ce7d67e9fbc564356478 Mon Sep 17 00:00:00 2001
From: wangqiang <wangqiang1 at kylinos.cn>
Date: Thu, 11 Apr 2024 18:03:55 +0800
Subject: [PATCH] Fix error in `call-abi-compatibility.ll`
Fix test error:
/bin/opt: <stdin>:116:3: error: instruction expected to be numbered '%1'
%3 = tail call <8 x i64> asm "vpaddb\09$($3, $2, $0 {$1}", "=v,^Yk,v,v,0,~{dirflag},~{fpsr},~{flags}"(i64 %k, <8 x i64> %a, <8 x i64> %b, <8 x i64> %src) #2
---
llvm/test/Transforms/Inline/X86/call-abi-compatibility.ll | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/test/Transforms/Inline/X86/call-abi-compatibility.ll b/llvm/test/Transforms/Inline/X86/call-abi-compatibility.ll
index 6f582cab2f1452..d3a4f956d09d9e 100644
--- a/llvm/test/Transforms/Inline/X86/call-abi-compatibility.ll
+++ b/llvm/test/Transforms/Inline/X86/call-abi-compatibility.ll
@@ -113,8 +113,8 @@ define internal <8 x i64> @callee_inline_asm(ptr %p0, i64 %k, ptr %p1, ptr %p2)
%src = load <8 x i64>, ptr %p0, align 64
%a = load <8 x i64>, ptr %p1, align 64
%b = load <8 x i64>, ptr %p2, align 64
- %3 = tail call <8 x i64> asm "vpaddb\09$($3, $2, $0 {$1}", "=v,^Yk,v,v,0,~{dirflag},~{fpsr},~{flags}"(i64 %k, <8 x i64> %a, <8 x i64> %b, <8 x i64> %src) #2
- ret <8 x i64> %3
+ %1 = tail call <8 x i64> asm "vpaddb\09$($3, $2, $0 {$1}", "=v,^Yk,v,v,0,~{dirflag},~{fpsr},~{flags}"(i64 %k, <8 x i64> %a, <8 x i64> %b, <8 x i64> %src) #2
+ ret <8 x i64> %1
}
attributes #0 = { "min-legal-vector-width"="512" "target-features"="+avx,+avx2,+avx512bw,+avx512dq,+avx512f,+cmov,+crc32,+cx8,+evex512,+f16c,+fma,+fxsr,+mmx,+popcnt,+sse,+sse2,+sse3,+sse4.1,+sse4.2,+ssse3,+x87,+xsave" "tune-cpu"="generic" }
More information about the llvm-commits
mailing list