20 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 32; RUN: llc %s -verify-machineinstrs -mtriple aarch64-apple-darwin -global-isel -o - | FileCheck %s3target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"4 5%struct.mszip_stream = type { i32, i32, i8, i32, ptr, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, [288 x i8], [32 x i8], [1152 x i16], [128 x i16], [32768 x i8], ptr, ptr }6 7define i16 @test(i32 %bit_buffer.6.lcssa, ptr %zip, ptr %.out) {8; CHECK-LABEL: test:9; CHECK: ; %bb.0:10; CHECK-NEXT: and w8, w0, #0x1ff11; CHECK-NEXT: add x8, x1, w8, uxtw #112; CHECK-NEXT: ldrh w0, [x8, #412]13; CHECK-NEXT: ret14 %and274 = and i32 %bit_buffer.6.lcssa, 51115 %idxprom275 = zext i32 %and274 to i6416 %arrayidx276 = getelementptr inbounds %struct.mszip_stream, ptr %zip, i64 0, i32 19, i64 %idxprom27517 %ld = load i16, ptr %arrayidx276, align 218 ret i16 %ld19}20