1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -O0 -mtriple=x86_64-unknown-linux-gnux32 | FileCheck %s
4 target datalayout = "e-m:e-p:32:32-i64:64-f80:128-n8:16:32:64-S128"
6 %struct.a = type { i8 }
8 define void @_Z1bv(%struct.a* noalias sret %agg.result) {
10 ; CHECK: # %bb.0: # %entry
11 ; CHECK-NEXT: pushq %rax
12 ; CHECK-NEXT: .cfi_def_cfa_offset 16
13 ; CHECK-NEXT: movl %edi, %eax
14 ; CHECK-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
15 ; CHECK-NEXT: callq _Z1bv
16 ; CHECK-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
17 ; CHECK-NEXT: popq %rcx
18 ; CHECK-NEXT: .cfi_def_cfa_offset 8
21 call void @_Z1bv(%struct.a* sret %agg.result)