#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ pll(int);
int /*<<< orphan*/ printf(char *);
void movi(void) {
  printf("MOVI:\n");
  pll(0);
  pll(0xabcd);
  pll(0xabcd0000);
  pll(0xabcd00000000);
  pll(0xabcd000000000000);
  pll(0xffffabcd);
  pll(0xabcdffff);
  pll(0xffffffffffffabcd);
  pll(0xffffffffabcdffff);
  pll(0xffffabcdffffffff);
  pll(0xabcdffffffffffff);
  pll(0xaaaaaaaa);
  pll(0x5555555555555555);
  pll(0x77777777);
  pll(0x3333333333333333);
  pll(0xf8f8f8f8);
  pll(0x1e1e1e1e1e1e1e1e);
  pll(0x3f803f80);
  pll(0x01ff01ff01ff01ff);
  pll(0x007fffc0);
  pll(0x03fff80003fff800);
  pll(0x0007fffffffffe00);
  pll(0xabcd1234);
  pll(0xabcd00001234);
  pll(0xabcd000000001234);
  pll(0xabcd12340000);
  pll(0xabcd000012340000);
  pll(0xabcd123400000000);
  pll(0xffffffffabcd1234);
  pll(0xffffabcdffff1234);
  pll(0xabcdffffffff1234);
  pll(0xffffabcd1234ffff);
  pll(0xabcdffff1234ffff);
  pll(0xabcd1234ffffffff);
  pll(0xffffef0123456789);
  pll(0xabcdef012345ffff);
  pll(0xabcdef0123456789);
}


x86 assembly (clang, -O0):
<movi>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <pll@plt>
mov    $0xabcd,%edi
call   1040 <pll@plt>
mov    $0xabcd0000,%edi
call   1040 <pll@plt>
xor    %edi,%edi
call   1040 <pll@plt>
xor    %edi,%edi
call   1040 <pll@plt>
mov    $0xffffabcd,%edi
call   1040 <pll@plt>
mov    $0xabcdffff,%edi
call   1040 <pll@plt>
mov    $0xffffabcd,%edi
call   1040 <pll@plt>
mov    $0xabcdffff,%edi
call   1040 <pll@plt>
mov    $0xffffffff,%edi
call   1040 <pll@plt>
mov    $0xffffffff,%edi
call   1040 <pll@plt>
mov    $0xaaaaaaaa,%edi
call   1040 <pll@plt>
mov    $0x55555555,%edi
call   1040 <pll@plt>
mov    $0x77777777,%edi
call   1040 <pll@plt>
mov    $0x33333333,%edi
call   1040 <pll@plt>
mov    $0xf8f8f8f8,%edi
call   1040 <pll@plt>
mov    $0x1e1e1e1e,%edi
call   1040 <pll@plt>
mov    $0x3f803f80,%edi
call   1040 <pll@plt>
mov    $0x1ff01ff,%edi
call   1040 <pll@plt>
mov    $0x7fffc0,%edi
call   1040 <pll@plt>
mov    $0x3fff800,%edi
call   1040 <pll@plt>
mov    $0xfffffe00,%edi
call   1040 <pll@plt>
mov    $0xabcd1234,%edi
call   1040 <pll@plt>
mov    $0x1234,%edi
call   1040 <pll@plt>
mov    $0x1234,%edi
call   1040 <pll@plt>
mov    $0x12340000,%edi
call   1040 <pll@plt>
mov    $0x12340000,%edi
call   1040 <pll@plt>
xor    %edi,%edi
call   1040 <pll@plt>
mov    $0xabcd1234,%edi
call   1040 <pll@plt>
mov    $0xffff1234,%edi
call   1040 <pll@plt>
mov    $0xffff1234,%edi
call   1040 <pll@plt>
mov    $0x1234ffff,%edi
call   1040 <pll@plt>
mov    $0x1234ffff,%edi
call   1040 <pll@plt>
mov    $0xffffffff,%edi
call   1040 <pll@plt>
mov    $0x23456789,%edi
call   1040 <pll@plt>
mov    $0x2345ffff,%edi
call   1040 <pll@plt>
mov    $0x23456789,%edi
call   1040 <pll@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<movi>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <pll@plt>
mov    $0xabcd,%edi
call   1040 <pll@plt>
mov    $0xabcd0000,%edi
call   1040 <pll@plt>
xor    %edi,%edi
call   1040 <pll@plt>
xor    %edi,%edi
call   1040 <pll@plt>
mov    $0xffffabcd,%edi
call   1040 <pll@plt>
mov    $0xabcdffff,%edi
call   1040 <pll@plt>
mov    $0xffffabcd,%edi
call   1040 <pll@plt>
mov    $0xabcdffff,%edi
call   1040 <pll@plt>
mov    $0xffffffff,%edi
call   1040 <pll@plt>
mov    $0xffffffff,%edi
call   1040 <pll@plt>
mov    $0xaaaaaaaa,%edi
call   1040 <pll@plt>
mov    $0x55555555,%edi
call   1040 <pll@plt>
mov    $0x77777777,%edi
call   1040 <pll@plt>
mov    $0x33333333,%edi
call   1040 <pll@plt>
mov    $0xf8f8f8f8,%edi
call   1040 <pll@plt>
mov    $0x1e1e1e1e,%edi
call   1040 <pll@plt>
mov    $0x3f803f80,%edi
call   1040 <pll@plt>
mov    $0x1ff01ff,%edi
call   1040 <pll@plt>
mov    $0x7fffc0,%edi
call   1040 <pll@plt>
mov    $0x3fff800,%edi
call   1040 <pll@plt>
mov    $0xfffffe00,%edi
call   1040 <pll@plt>
mov    $0xabcd1234,%edi
call   1040 <pll@plt>
mov    $0x1234,%edi
call   1040 <pll@plt>
mov    $0x1234,%edi
call   1040 <pll@plt>
mov    $0x12340000,%edi
call   1040 <pll@plt>
mov    $0x12340000,%edi
call   1040 <pll@plt>
xor    %edi,%edi
call   1040 <pll@plt>
mov    $0xabcd1234,%edi
call   1040 <pll@plt>
mov    $0xffff1234,%edi
call   1040 <pll@plt>
mov    $0xffff1234,%edi
call   1040 <pll@plt>
mov    $0x1234ffff,%edi
call   1040 <pll@plt>
mov    $0x1234ffff,%edi
call   1040 <pll@plt>
mov    $0xffffffff,%edi
call   1040 <pll@plt>
mov    $0x23456789,%edi
call   1040 <pll@plt>
mov    $0x2345ffff,%edi
call   1040 <pll@plt>
mov    $0x23456789,%edi
pop    %rax
jmp    1040 <pll@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"MOVI:\0A\00"
define void @movi() {
%1 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @pll(i32 0)
%3 = call i32 @pll(i32 43981)
%4 = call i32 @pll(i32 -1412628480)
%5 = call i32 @pll(i32 0)
%6 = call i32 @pll(i32 0)
%7 = call i32 @pll(i32 -21555)
%8 = call i32 @pll(i32 -1412562945)
%9 = call i32 @pll(i32 -21555)
%10 = call i32 @pll(i32 -1412562945)
%11 = call i32 @pll(i32 -1)
%12 = call i32 @pll(i32 -1)
%13 = call i32 @pll(i32 -1431655766)
%14 = call i32 @pll(i32 1431655765)
%15 = call i32 @pll(i32 2004318071)
%16 = call i32 @pll(i32 858993459)
%17 = call i32 @pll(i32 -117901064)
%18 = call i32 @pll(i32 505290270)
%19 = call i32 @pll(i32 1065369472)
%20 = call i32 @pll(i32 33489407)
%21 = call i32 @pll(i32 8388544)
%22 = call i32 @pll(i32 67106816)
%23 = call i32 @pll(i32 -512)
%24 = call i32 @pll(i32 -1412623820)
%25 = call i32 @pll(i32 4660)
%26 = call i32 @pll(i32 4660)
%27 = call i32 @pll(i32 305397760)
%28 = call i32 @pll(i32 305397760)
%29 = call i32 @pll(i32 0)
%30 = call i32 @pll(i32 -1412623820)
%31 = call i32 @pll(i32 -60876)
%32 = call i32 @pll(i32 -60876)
%33 = call i32 @pll(i32 305463295)
%34 = call i32 @pll(i32 305463295)
%35 = call i32 @pll(i32 -1)
%36 = call i32 @pll(i32 591751049)
%37 = call i32 @pll(i32 591790079)
%38 = call i32 @pll(i32 591751049)
ret void
}

LLVM IR (-O2):
@str = [6 x i8] c"MOVI:\00"
define void @movi() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @pll(i32 0)
%3 = tail call i32 @pll(i32 43981)
%4 = tail call i32 @pll(i32 -1412628480)
%5 = tail call i32 @pll(i32 0)
%6 = tail call i32 @pll(i32 0)
%7 = tail call i32 @pll(i32 -21555)
%8 = tail call i32 @pll(i32 -1412562945)
%9 = tail call i32 @pll(i32 -21555)
%10 = tail call i32 @pll(i32 -1412562945)
%11 = tail call i32 @pll(i32 -1)
%12 = tail call i32 @pll(i32 -1)
%13 = tail call i32 @pll(i32 -1431655766)
%14 = tail call i32 @pll(i32 1431655765)
%15 = tail call i32 @pll(i32 2004318071)
%16 = tail call i32 @pll(i32 858993459)
%17 = tail call i32 @pll(i32 -117901064)
%18 = tail call i32 @pll(i32 505290270)
%19 = tail call i32 @pll(i32 1065369472)
%20 = tail call i32 @pll(i32 33489407)
%21 = tail call i32 @pll(i32 8388544)
%22 = tail call i32 @pll(i32 67106816)
%23 = tail call i32 @pll(i32 -512)
%24 = tail call i32 @pll(i32 -1412623820)
%25 = tail call i32 @pll(i32 4660)
%26 = tail call i32 @pll(i32 4660)
%27 = tail call i32 @pll(i32 305397760)
%28 = tail call i32 @pll(i32 305397760)
%29 = tail call i32 @pll(i32 0)
%30 = tail call i32 @pll(i32 -1412623820)
%31 = tail call i32 @pll(i32 -60876)
%32 = tail call i32 @pll(i32 -60876)
%33 = tail call i32 @pll(i32 305463295)
%34 = tail call i32 @pll(i32 305463295)
%35 = tail call i32 @pll(i32 -1)
%36 = tail call i32 @pll(i32 591751049)
%37 = tail call i32 @pll(i32 591790079)
%38 = tail call i32 @pll(i32 591751049)
ret void
}