brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.5 KiB · 38c7b73 Raw
104 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --no_x86_scrub_sp --no_x86_scrub_mem_shuffle2; RUN: llc -mcpu=generic -mtriple=i686-pc-windows-msvc -mattr=+sse2 < %s | FileCheck %s --check-prefix=MSVC3; RUN: llc -mcpu=generic -mtriple=i686-pc-mingw32 -mattr=+sse2 < %s | FileCheck %s --check-prefix=MINGW4 5@a = external dso_local global <4 x float>, align 166 7define dso_local void @testPastArguments() nounwind {8; MSVC-LABEL: testPastArguments:9; MSVC:       # %bb.0: # %entry10; MSVC-NEXT:    subl $20, %esp11; MSVC-NEXT:    movaps _a, %xmm012; MSVC-NEXT:    movups %xmm0, 4(%esp)13; MSVC-NEXT:    movl $1, (%esp)14; MSVC-NEXT:    calll _testm12815; MSVC-NEXT:    addl $20, %esp16; MSVC-NEXT:    retl17;18; MINGW-LABEL: testPastArguments:19; MINGW:       # %bb.0: # %entry20; MINGW-NEXT:    pushl %ebp21; MINGW-NEXT:    movl %esp, %ebp22; MINGW-NEXT:    andl $-16, %esp23; MINGW-NEXT:    subl $48, %esp24; MINGW-NEXT:    movaps _a, %xmm025; MINGW-NEXT:    movaps %xmm0, 16(%esp)26; MINGW-NEXT:    movl $1, (%esp)27; MINGW-NEXT:    calll _testm12828; MINGW-NEXT:    movl %ebp, %esp29; MINGW-NEXT:    popl %ebp30; MINGW-NEXT:    retl31entry:32  %0 = load <4 x float>, ptr @a, align 1633  %call = tail call i32 (i32, ...) @testm128(i32 1, <4 x float> inreg %0)34  ret void35}36 37define <4 x i32> @foo(<4 x float> inreg %0, ...) nounwind {38; MSVC-LABEL: foo:39; MSVC:       # %bb.0:40; MSVC-NEXT:    pushl %eax41; MSVC-NEXT:    movups 8(%esp), %xmm042; MSVC-NEXT:    movups 24(%esp), %xmm143; MSVC-NEXT:    cmpltps %xmm1, %xmm044; MSVC-NEXT:    popl %eax45; MSVC-NEXT:    retl46;47; MINGW-LABEL: foo:48; MINGW:       # %bb.0:49; MINGW-NEXT:    pushl %ebp50; MINGW-NEXT:    movl %esp, %ebp51; MINGW-NEXT:    andl $-16, %esp52; MINGW-NEXT:    subl $16, %esp53; MINGW-NEXT:    movaps 8(%ebp), %xmm054; MINGW-NEXT:    movups 24(%ebp), %xmm155; MINGW-NEXT:    cmpltps %xmm1, %xmm056; MINGW-NEXT:    movl %ebp, %esp57; MINGW-NEXT:    popl %ebp58; MINGW-NEXT:    retl59  %2 = alloca ptr, align 460  call void @llvm.lifetime.start.p0(i64 4, ptr %2)61  call void @llvm.va_start(ptr %2)62  %3 = load ptr, ptr %2, align 463  %4 = load <4 x float>, ptr %3, align 464  %5 = fcmp ogt <4 x float> %4, %065  %6 = sext <4 x i1> %5 to <4 x i32>66  call void @llvm.lifetime.end.p0(i64 4, ptr %2)67  ret <4 x i32> %668}69 70define <4 x i32> @bar() nounwind {71; MSVC-LABEL: bar:72; MSVC:       # %bb.0:73; MSVC-NEXT:    subl $32, %esp74; MSVC-NEXT:    movaps {{.*#+}} xmm0 = [5.0E+0,6.0E+0,7.0E+0,8.0E+0]75; MSVC-NEXT:    movups %xmm0, 16(%esp)76; MSVC-NEXT:    movaps {{.*#+}} xmm0 = [1.0E+0,2.0E+0,3.0E+0,4.0E+0]77; MSVC-NEXT:    movups %xmm0, (%esp)78; MSVC-NEXT:    calll _foo79; MSVC-NEXT:    addl $32, %esp80; MSVC-NEXT:    retl81;82; MINGW-LABEL: bar:83; MINGW:       # %bb.0:84; MINGW-NEXT:    pushl %ebp85; MINGW-NEXT:    movl %esp, %ebp86; MINGW-NEXT:    andl $-16, %esp87; MINGW-NEXT:    subl $48, %esp88; MINGW-NEXT:    movaps {{.*#+}} xmm0 = [5.0E+0,6.0E+0,7.0E+0,8.0E+0]89; MINGW-NEXT:    movaps %xmm0, 16(%esp)90; MINGW-NEXT:    movaps {{.*#+}} xmm0 = [1.0E+0,2.0E+0,3.0E+0,4.0E+0]91; MINGW-NEXT:    movaps %xmm0, (%esp)92; MINGW-NEXT:    calll _foo93; MINGW-NEXT:    movl %ebp, %esp94; MINGW-NEXT:    popl %ebp95; MINGW-NEXT:    retl96  %1 = tail call <4 x i32> (<4 x float>, ...) @foo(<4 x float> <float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00>, <4 x float> <float 5.000000e+00, float 6.000000e+00, float 7.000000e+00, float 8.000000e+00>)97  ret <4 x i32> %198}99 100declare i32 @testm128(i32, ...) nounwind101declare void @llvm.va_start(ptr)102declare void @llvm.lifetime.start.p0(i64, ptr)103declare void @llvm.lifetime.end.p0(i64, ptr)104