brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 4462a4a Raw
43 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-unknown -mcpu=pentium4 | FileCheck %s3 4%struct.Foo = type { i32, %struct.Bar }5%struct.Bar = type { i32, %struct.Buffer, i32 }6%struct.Buffer = type { ptr, i32 }7 8; This test checks that the load of store %2 is not dropped.9;10define i32 @pr34088() local_unnamed_addr {11; CHECK-LABEL: pr34088:12; CHECK:       # %bb.0: # %entry13; CHECK-NEXT:    pushl %ebp14; CHECK-NEXT:    .cfi_def_cfa_offset 815; CHECK-NEXT:    .cfi_offset %ebp, -816; CHECK-NEXT:    movl %esp, %ebp17; CHECK-NEXT:    .cfi_def_cfa_register %ebp18; CHECK-NEXT:    andl $-16, %esp19; CHECK-NEXT:    subl $32, %esp20; CHECK-NEXT:    xorps %xmm0, %xmm021; CHECK-NEXT:    movaps {{.*#+}} xmm1 = [205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205]22; CHECK-NEXT:    xorl %eax, %eax23; CHECK-NEXT:    movaps %xmm0, (%esp)24; CHECK-NEXT:    movsd {{.*#+}} xmm0 = mem[0],zero25; CHECK-NEXT:    movl $-842150451, {{[0-9]+}}(%esp) # imm = 0xCDCDCDCD26; CHECK-NEXT:    movaps %xmm1, (%esp)27; CHECK-NEXT:    movsd %xmm0, {{[0-9]+}}(%esp)28; CHECK-NEXT:    movl %ebp, %esp29; CHECK-NEXT:    popl %ebp30; CHECK-NEXT:    .cfi_def_cfa %esp, 431; CHECK-NEXT:    retl32entry:33  %foo = alloca %struct.Foo, align 434  call void @llvm.memset.p0.i32(ptr align 4 nonnull %foo, i8 0, i32 20, i1 false)35  %buffer1 = getelementptr inbounds %struct.Foo, ptr %foo, i32 0, i32 1, i32 136  %0 = load i64, ptr %buffer1, align 437  call void @llvm.memset.p0.i32(ptr align 4 nonnull %foo, i8 -51, i32 20, i1 false)38  store i64 %0, ptr %buffer1, align 439  ret i32 040}41 42declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1)43