Skip to content

Commit 54d6f66

Browse files
committed
[AArch64] Add test for llvm#90936. NFC
1 parent f9d91fb commit 54d6f66

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

llvm/test/CodeGen/AArch64/pr90936.ll

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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 void @f(i16 %arg, ptr %arg1) {
5+
; CHECK-LABEL: f:
6+
; CHECK: // %bb.0: // %bb
7+
; CHECK-NEXT: strh w0, [x1]
8+
; CHECK-NEXT: ret
9+
bb:
10+
%i = trunc i16 %arg to i8
11+
%i2 = trunc i16 %arg to i14
12+
%i3 = lshr i14 %i2, 8
13+
store i8 %i, ptr %arg1, align 1
14+
%i4 = getelementptr i8, ptr %arg1, i64 1
15+
%i5 = trunc i14 %i3 to i8
16+
store i8 %i5, ptr %i4, align 1
17+
ret void
18+
}

0 commit comments

Comments
 (0)