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(ptr noalias sret(%struct.a) %agg.result) {
10 ; CHECK: # %bb.0: # %entry
11 ; CHECK-NEXT: pushq %rax
12 ; CHECK-NEXT: .cfi_def_cfa_offset 16
13 ; CHECK-NEXT: # kill: def $edi killed $edi killed $rdi
14 ; CHECK-NEXT: movl %edi, %eax
15 ; CHECK-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
16 ; CHECK-NEXT: callq _Z1bv@PLT
17 ; CHECK-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
18 ; CHECK-NEXT: popq %rcx
19 ; CHECK-NEXT: .cfi_def_cfa_offset 8
22 call void @_Z1bv(ptr sret(%struct.a) %agg.result)