Skip to content

Commit 0d7ea50

Browse files
committed
[AArch64] Pre-commit test for #86717. NFC
1 parent abc270a commit 0d7ea50

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

llvm/test/CodeGen/AArch64/pr86717.ll

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
2+
; RUN: llc < %s -mtriple=aarch64 | FileCheck %s
3+
4+
define <16 x i8> @f(i32 %0) {
5+
; CHECK-LABEL: f:
6+
; CHECK: // %bb.0:
7+
; CHECK-NEXT: sub sp, sp, #16
8+
; CHECK-NEXT: .cfi_def_cfa_offset 16
9+
; CHECK-NEXT: movi v0.2d, #0000000000000000
10+
; CHECK-NEXT: mov w8, #1 // =0x1
11+
; CHECK-NEXT: mov x9, sp
12+
; CHECK-NEXT: sub w8, w8, w0
13+
; CHECK-NEXT: mov w10, #3 // =0x3
14+
; CHECK-NEXT: orr x8, x9, x8
15+
; CHECK-NEXT: str q0, [sp]
16+
; CHECK-NEXT: strb w10, [x8]
17+
; CHECK-NEXT: ldr q0, [sp], #16
18+
; CHECK-NEXT: ret
19+
%2 = sub nuw i32 1, %0
20+
%3 = insertelement <16 x i8> zeroinitializer, i8 3, i32 %2
21+
ret <16 x i8> %3
22+
}

0 commit comments

Comments
 (0)