[llvm] a03bcc2 - [NFC] Autogenerate CodeGen/AArch64/sve-vl-arith.ll
Amaury Séchet via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 14 10:12:04 PDT 2023
Author: Amaury Séchet
Date: 2023-06-14T17:09:55Z
New Revision: a03bcc2f9e44084056198ed644a30b1b3e771443
URL: https://github.com/llvm/llvm-project/commit/a03bcc2f9e44084056198ed644a30b1b3e771443
DIFF: https://github.com/llvm/llvm-project/commit/a03bcc2f9e44084056198ed644a30b1b3e771443.diff
LOG: [NFC] Autogenerate CodeGen/AArch64/sve-vl-arith.ll
Added:
Modified:
llvm/test/CodeGen/AArch64/sve-vl-arith.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/AArch64/sve-vl-arith.ll b/llvm/test/CodeGen/AArch64/sve-vl-arith.ll
index 6323850515322..cd11972efc801 100644
--- a/llvm/test/CodeGen/AArch64/sve-vl-arith.ll
+++ b/llvm/test/CodeGen/AArch64/sve-vl-arith.ll
@@ -1,3 +1,4 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve -verify-machineinstrs < %s | FileCheck %s -check-prefix=NO_SCALAR_INC
; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve -mattr=+use-scalar-inc-vl -verify-machineinstrs < %s | FileCheck %s
; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2 -verify-machineinstrs < %s | FileCheck %s
@@ -260,13 +261,14 @@ define i32 @incb_scalar_i32(i32 %a) {
; NO_SCALAR_INC-NEXT: addvl x0, x0, #3
; NO_SCALAR_INC-NEXT: // kill: def $w0 killed $w0 killed $x0
; NO_SCALAR_INC-NEXT: ret
-
+;
; CHECK-LABEL: incb_scalar_i32:
; CHECK: // %bb.0:
; CHECK-NEXT: // kill: def $w0 killed $w0 def $x0
; CHECK-NEXT: addvl x0, x0, #3
; CHECK-NEXT: // kill: def $w0 killed $w0 killed $x0
; CHECK-NEXT: ret
+
%vscale = call i64 @llvm.vscale.i64()
%mul = mul i64 %vscale, 48
%vl = trunc i64 %mul to i32
@@ -280,13 +282,14 @@ define i32 @inch_scalar_i32(i32 %a) {
; NO_SCALAR_INC-NEXT: cnth x8, all, mul #7
; NO_SCALAR_INC-NEXT: add w0, w0, w8
; NO_SCALAR_INC-NEXT: ret
-
+;
; CHECK-LABEL: inch_scalar_i32:
; CHECK: // %bb.0:
; CHECK-NEXT: // kill: def $w0 killed $w0 def $x0
; CHECK-NEXT: inch x0, all, mul #7
; CHECK-NEXT: // kill: def $w0 killed $w0 killed $x0
; CHECK-NEXT: ret
+
%vscale = call i64 @llvm.vscale.i64()
%mul = mul i64 %vscale, 56
%vl = trunc i64 %mul to i32
@@ -300,13 +303,14 @@ define i32 @incw_scalar_i32(i32 %a) {
; NO_SCALAR_INC-NEXT: cntw x8, all, mul #7
; NO_SCALAR_INC-NEXT: add w0, w0, w8
; NO_SCALAR_INC-NEXT: ret
-
+;
; CHECK-LABEL: incw_scalar_i32:
; CHECK: // %bb.0:
; CHECK-NEXT: // kill: def $w0 killed $w0 def $x0
; CHECK-NEXT: incw x0, all, mul #7
; CHECK-NEXT: // kill: def $w0 killed $w0 killed $x0
; CHECK-NEXT: ret
+
%vscale = call i64 @llvm.vscale.i64()
%mul = mul i64 %vscale, 28
%vl = trunc i64 %mul to i32
@@ -320,13 +324,14 @@ define i32 @incd_scalar_i32(i32 %a) {
; NO_SCALAR_INC-NEXT: cntd x8, all, mul #7
; NO_SCALAR_INC-NEXT: add w0, w0, w8
; NO_SCALAR_INC-NEXT: ret
-
+;
; CHECK-LABEL: incd_scalar_i32:
; CHECK: // %bb.0:
; CHECK-NEXT: // kill: def $w0 killed $w0 def $x0
; CHECK-NEXT: incd x0, all, mul #7
; CHECK-NEXT: // kill: def $w0 killed $w0 killed $x0
; CHECK-NEXT: ret
+
%vscale = call i64 @llvm.vscale.i64()
%mul = mul i64 %vscale, 14
%vl = trunc i64 %mul to i32
@@ -343,13 +348,14 @@ define i32 @decb_scalar_i32(i32 %a) {
; NO_SCALAR_INC-NEXT: addvl x0, x0, #-4
; NO_SCALAR_INC-NEXT: // kill: def $w0 killed $w0 killed $x0
; NO_SCALAR_INC-NEXT: ret
-
+;
; CHECK-LABEL: decb_scalar_i32:
; CHECK: // %bb.0:
; CHECK-NEXT: // kill: def $w0 killed $w0 def $x0
; CHECK-NEXT: addvl x0, x0, #-4
; CHECK-NEXT: // kill: def $w0 killed $w0 killed $x0
; CHECK-NEXT: ret
+
%vscale = call i64 @llvm.vscale.i64()
%mul = mul i64 %vscale, 64
%vl = trunc i64 %mul to i32
@@ -364,13 +370,14 @@ define i32 @dech_scalar_i32(i32 %a) {
; NO_SCALAR_INC-NEXT: neg x8, x8
; NO_SCALAR_INC-NEXT: add w0, w0, w8
; NO_SCALAR_INC-NEXT: ret
-
+;
; CHECK-LABEL: dech_scalar_i32:
; CHECK: // %bb.0:
; CHECK-NEXT: // kill: def $w0 killed $w0 def $x0
; CHECK-NEXT: dech x0
; CHECK-NEXT: // kill: def $w0 killed $w0 killed $x0
; CHECK-NEXT: ret
+
%vscale = call i64 @llvm.vscale.i64()
%mul = mul i64 %vscale, 8
%vl = trunc i64 %mul to i32
@@ -385,13 +392,14 @@ define i32 @decw_scalar_i32(i32 %a) {
; NO_SCALAR_INC-NEXT: neg x8, x8
; NO_SCALAR_INC-NEXT: add w0, w0, w8
; NO_SCALAR_INC-NEXT: ret
-
+;
; CHECK-LABEL: decw_scalar_i32:
; CHECK: // %bb.0:
; CHECK-NEXT: // kill: def $w0 killed $w0 def $x0
; CHECK-NEXT: decw x0
; CHECK-NEXT: // kill: def $w0 killed $w0 killed $x0
; CHECK-NEXT: ret
+
%vscale = call i64 @llvm.vscale.i64()
%mul = mul i64 %vscale, 4
%vl = trunc i64 %mul to i32
More information about the llvm-commits
mailing list