57 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 42; RUN: llc -mtriple=riscv32 -mattr=+zcmp,+e -target-abi ilp32e -verify-machineinstrs < %s | FileCheck %s --check-prefix=RV323 4declare i32 @__mulsi3(i32, i32)5 6define ptr @func(ptr %s, i32 %_c, ptr %incdec.ptr, i1 %0, i8 %conv14) #0 {7; RV32-LABEL: func:8; RV32: # %bb.0: # %entry9; RV32-NEXT: cm.push {ra, s0-s1}, -1610; RV32-NEXT: .cfi_def_cfa_offset 1611; RV32-NEXT: .cfi_offset ra, -1212; RV32-NEXT: .cfi_offset s0, -813; RV32-NEXT: .cfi_offset s1, -414; RV32-NEXT: addi sp, sp, -815; RV32-NEXT: .cfi_def_cfa_offset 2416; RV32-NEXT: sw a4, 4(sp) # 4-byte Folded Spill17; RV32-NEXT: sw a2, 0(sp) # 4-byte Folded Spill18; RV32-NEXT: mv a2, a119; RV32-NEXT: mv s1, a020; RV32-NEXT: li a0, 121; RV32-NEXT: andi a3, a3, 122; RV32-NEXT: .LBB0_1: # %while.body23; RV32-NEXT: # =>This Inner Loop Header: Depth=124; RV32-NEXT: mv s0, a025; RV32-NEXT: li a0, 026; RV32-NEXT: bnez a3, .LBB0_127; RV32-NEXT: # %bb.2: # %while.end28; RV32-NEXT: lui a1, 411229; RV32-NEXT: addi a1, a1, 25730; RV32-NEXT: mv a0, a231; RV32-NEXT: call __mulsi332; RV32-NEXT: sw a0, 0(zero)33; RV32-NEXT: andi s0, s0, 134; RV32-NEXT: lw a0, 0(sp) # 4-byte Folded Reload35; RV32-NEXT: add s0, s0, a036; RV32-NEXT: lw a0, 4(sp) # 4-byte Folded Reload37; RV32-NEXT: sb a0, 0(s0)38; RV32-NEXT: mv a0, s139; RV32-NEXT: addi sp, sp, 840; RV32-NEXT: .cfi_def_cfa_offset 1641; RV32-NEXT: cm.popret {ra, s0-s1}, 1642entry:43 br label %while.body44 45while.body: ; preds = %while.body, %entry46 %n.addr.042 = phi i32 [ 1, %entry ], [ 0, %while.body ]47 br i1 %0, label %while.body, label %while.end48 49while.end: ; preds = %while.body50 %mul_result = call i32 @__mulsi3(i32 %_c, i32 16843009)51 store i32 %mul_result, ptr null, align 452 %1 = and i32 %n.addr.042, 153 %scevgep = getelementptr i8, ptr %incdec.ptr, i32 %154 store i8 %conv14, ptr %scevgep, align 155 ret ptr %s56}57