1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-linux | FileCheck %s --check-prefix=X86
3 ; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s --check-prefix=X64
5 define i32 @main() nounwind {
7 ; X86: # %bb.0: # %entry
9 ; X86-NEXT: movl $1, (%esp)
10 ; X86-NEXT: movl $1, %eax
15 ; X64: # %bb.0: # %entry
16 ; X64-NEXT: movl $1, -{{[0-9]+}}(%rsp)
17 ; X64-NEXT: movl $1, %eax
20 %a = alloca i32, align 4
21 store i32 1, ptr %a, align 4
22 %0 = load i32, ptr %a, align 4
25 %rem = urem i32 %and, 1
26 %add = add i32 %rem, 1