brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 25e5ac7 Raw
39 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-unknown | FileCheck %s --check-prefix=X863; RUN: llc < %s -mtriple=x86_64-unknown | FileCheck %s --check-prefix=X644 5define void @PR57283() nounwind {6; X86-LABEL: PR57283:7; X86:       # %bb.0: # %BB8; X86-NEXT:    pushl %ebp9; X86-NEXT:    movl %esp, %ebp10; X86-NEXT:    andl $-8, %esp11; X86-NEXT:    subl $16, %esp12; X86-NEXT:    movl $0, {{[0-9]+}}(%esp)13; X86-NEXT:    movl $0, (%esp)14; X86-NEXT:    movl $0, {{[0-9]+}}(%esp)15; X86-NEXT:    movl $0, {{[0-9]+}}(%esp)16; X86-NEXT:    movl %ebp, %esp17; X86-NEXT:    popl %ebp18; X86-NEXT:    retl19;20; X64-LABEL: PR57283:21; X64:       # %bb.0: # %BB22; X64-NEXT:    movq $0, -{{[0-9]+}}(%rsp)23; X64-NEXT:    movq $0, -{{[0-9]+}}(%rsp)24; X64-NEXT:    retq25BB:26  %A6 = alloca i64, align 827  %A = alloca i64, align 828  %L = load i64, ptr %A, align 429  %B3 = sub i64 %L, %L30  %B2 = mul i64 %B3, 429496729631  %B1 = add i64 %B2, %B232  %B4 = udiv i64 %B2, -922337203685477580833  %B = xor i64 %B1, %B434  store i64 %B, ptr %A, align 435  %B5 = sdiv i64 %B, -136  store i64 %B5, ptr %A6, align 437  ret void38}39