| ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py |
| ; RUN: llc < %s -mtriple=thumbv8-unknown-linux-android -o - | FileCheck %s |
| |
| %struct.af = type <{ i64, i64, i8, i8, i8, [5 x i8] }> |
| |
| define void @test() { |
| ; CHECK-LABEL: test: |
| ; CHECK: @ %bb.0: @ %entry |
| ; CHECK-NEXT: .save {r7, lr} |
| ; CHECK-NEXT: push {r7, lr} |
| ; CHECK-NEXT: .pad #24 |
| ; CHECK-NEXT: sub sp, #24 |
| ; CHECK-NEXT: vmov.i32 q8, #0x0 |
| ; CHECK-NEXT: mov r0, sp |
| ; CHECK-NEXT: mov.w r1, #-1 |
| ; CHECK-NEXT: mov r2, r0 |
| ; CHECK-NEXT: strd r1, r1, [sp, #8] |
| ; CHECK-NEXT: strd r1, r1, [sp] |
| ; CHECK-NEXT: vst1.64 {d16, d17}, [r2]! |
| ; CHECK-NEXT: str r1, [r2] |
| ; CHECK-NEXT: str r1, [sp, #20] |
| ; CHECK-NEXT: movs r1, #0 |
| ; CHECK-NEXT: str.w r1, [sp, #15] |
| ; CHECK-NEXT: bl callee |
| ; CHECK-NEXT: add sp, #24 |
| ; CHECK-NEXT: pop {r7, pc} |
| entry: |
| %a = alloca %struct.af, align 8 |
| call void @llvm.memset.p0.i64(ptr align 8 %a, i8 -1, i64 24, i1 false) |
| call void @llvm.memset.p0.i64(ptr align 8 %a, i8 0, i64 19, i1 false) |
| call void @callee(ptr %a) |
| ret void |
| } |
| |
| declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) |
| declare void @callee(ptr) local_unnamed_addr #1 |