[llvm] 0d7ea50 - [AArch64] Pre-commit test for #86717. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 27 13:08:49 PDT 2024
Author: Craig Topper
Date: 2024-03-27T13:01:23-07:00
New Revision: 0d7ea50d20414e2da3019c45a0a3de804167fa47
URL: https://github.com/llvm/llvm-project/commit/0d7ea50d20414e2da3019c45a0a3de804167fa47
DIFF: https://github.com/llvm/llvm-project/commit/0d7ea50d20414e2da3019c45a0a3de804167fa47.diff
LOG: [AArch64] Pre-commit test for #86717. NFC
Added:
llvm/test/CodeGen/AArch64/pr86717.ll
Modified:
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/AArch64/pr86717.ll b/llvm/test/CodeGen/AArch64/pr86717.ll
new file mode 100644
index 00000000000000..aac0c0df5f51a1
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/pr86717.ll
@@ -0,0 +1,22 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
+; RUN: llc < %s -mtriple=aarch64 | FileCheck %s
+
+define <16 x i8> @f(i32 %0) {
+; CHECK-LABEL: f:
+; CHECK: // %bb.0:
+; CHECK-NEXT: sub sp, sp, #16
+; CHECK-NEXT: .cfi_def_cfa_offset 16
+; CHECK-NEXT: movi v0.2d, #0000000000000000
+; CHECK-NEXT: mov w8, #1 // =0x1
+; CHECK-NEXT: mov x9, sp
+; CHECK-NEXT: sub w8, w8, w0
+; CHECK-NEXT: mov w10, #3 // =0x3
+; CHECK-NEXT: orr x8, x9, x8
+; CHECK-NEXT: str q0, [sp]
+; CHECK-NEXT: strb w10, [x8]
+; CHECK-NEXT: ldr q0, [sp], #16
+; CHECK-NEXT: ret
+ %2 = sub nuw i32 1, %0
+ %3 = insertelement <16 x i8> zeroinitializer, i8 3, i32 %2
+ ret <16 x i8> %3
+}
More information about the llvm-commits
mailing list