brintos

brintos / llvm-project-archived public Read only

0
0
Text · 786 B · 9f81165 Raw
29 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-linux | FileCheck %s --check-prefix=X863; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s --check-prefix=X644 5define i32 @main() nounwind {6; X86-LABEL: main:7; X86:       # %bb.0: # %entry8; X86-NEXT:    pushl %eax9; X86-NEXT:    movl $1, (%esp)10; X86-NEXT:    movl $1, %eax11; X86-NEXT:    popl %ecx12; X86-NEXT:    retl13;14; X64-LABEL: main:15; X64:       # %bb.0: # %entry16; X64-NEXT:    movl $1, -{{[0-9]+}}(%rsp)17; X64-NEXT:    movl $1, %eax18; X64-NEXT:    retq19entry:20  %a = alloca i32, align 421  store i32 1, ptr %a, align 422  %0 = load i32, ptr %a, align 423  %or = or i32 1, %024  %and = and i32 1, %or25  %rem = urem i32 %and, 126  %add = add i32 %rem, 127  ret i32 %add28}29