int main() {
  unsigned long long int uli;
  signed long long int sli;
  uli = 0xFFFFFFFFFFFFFFFFULL;
  uli = uli >> 1;
  uli = 0;
  uli = 0x0000000000000000ULL;
  uli = uli >> 1;
  uli = 0;
  uli = 0x0000000000000001ULL;
  uli = uli >> 1;
  uli = 0;
  uli = 0x8000000000000000ULL;
  uli = uli >> 1;
  uli = 0;
  uli = 0xAAAAAAAAAAAAAAAAULL;
  uli = uli >> 1;
  uli = 0;
  uli = 0x00000003C0000000ULL;
  uli = uli >> 2;
  uli = 0;
  sli = 0xFFFFFFFFFFFFFFFFLL;
  sli = sli >> 1;
  sli = 0;
  sli = 0x0000000000000000LL;
  sli = sli >> 1;
  sli = 0;
  sli = 0x0000000000000001LL;
  sli = sli >> 1;
  sli = 0;
  sli = 0x8000000000000000LL;
  sli = sli >> 1;
  sli = 0;
  sli = 0xAAAAAAAAAAAAAAAALL;
  sli = sli >> 1;
  sli = 0;
  sli = 0x00000003C0000000LL;
  sli = sli >> 2;
  sli = 0;
  uli = 0xFFFFFFFFFFFFFFFFULL;
  uli = uli << 1;
  uli = 0;
  uli = 0x0000000000000000ULL;
  uli = uli << 1;
  uli = 0;
  uli = 0x0000000000000001ULL;
  uli = uli << 1;
  uli = 0;
  uli = 0x8000000000000000ULL;
  uli = uli << 1;
  uli = 0;
  uli = 0xAAAAAAAAAAAAAAAAULL;
  uli = uli << 1;
  uli = 0;
  uli = 0x00000003C0000000ULL;
  uli = uli << 2;
  uli = 0;
  sli = 0xFFFFFFFFFFFFFFFFLL;
  sli = sli << 1;
  sli = 0;
  sli = 0x0000000000000000LL;
  sli = sli << 1;
  sli = 0;
  sli = 0x0000000000000001LL;
  sli = sli << 1;
  sli = 0;
  sli = 0x8000000000000000LL;
  sli = sli << 1;
  sli = 0;
  sli = 0xAAAAAAAAAAAAAAAALL;
  sli = sli << 1;
  sli = 0;
  sli = 0x00000003C0000000LL;
  sli = sli << 2;
  sli = 0;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movq   $0xffffffffffffffff,-0x10(%rbp)
ff
mov    -0x10(%rbp),%rax
shr    $0x1,%rax
mov    %rax,-0x10(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%rax
shr    $0x1,%rax
mov    %rax,-0x10(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%rax
shr    $0x1,%rax
mov    %rax,-0x10(%rbp)
movq   $0x0,-0x10(%rbp)
movabs $0x8000000000000000,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
shr    $0x1,%rax
mov    %rax,-0x10(%rbp)
movq   $0x0,-0x10(%rbp)
movabs $0xaaaaaaaaaaaaaaaa,%rax
aa aa aa
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
shr    $0x1,%rax
mov    %rax,-0x10(%rbp)
movq   $0x0,-0x10(%rbp)
movabs $0x3c0000000,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
shr    $0x2,%rax
mov    %rax,-0x10(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0xffffffffffffffff,-0x18(%rbp)
ff
mov    -0x18(%rbp),%rax
sar    $0x1,%rax
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%rax
sar    $0x1,%rax
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%rax
sar    $0x1,%rax
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x18(%rbp)
movabs $0x8000000000000000,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
sar    $0x1,%rax
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x18(%rbp)
movabs $0xaaaaaaaaaaaaaaaa,%rax
aa aa aa
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
sar    $0x1,%rax
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x18(%rbp)
movabs $0x3c0000000,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
sar    $0x2,%rax
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0xffffffffffffffff,-0x10(%rbp)
ff
mov    -0x10(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x10(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x10(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x10(%rbp)
movq   $0x0,-0x10(%rbp)
movabs $0x8000000000000000,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x10(%rbp)
movq   $0x0,-0x10(%rbp)
movabs $0xaaaaaaaaaaaaaaaa,%rax
aa aa aa
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x10(%rbp)
movq   $0x0,-0x10(%rbp)
movabs $0x3c0000000,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
shl    $0x2,%rax
mov    %rax,-0x10(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0xffffffffffffffff,-0x18(%rbp)
ff
mov    -0x18(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x18(%rbp)
movabs $0x8000000000000000,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x18(%rbp)
movabs $0xaaaaaaaaaaaaaaaa,%rax
aa aa aa
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x18(%rbp)
movabs $0x3c0000000,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
shl    $0x2,%rax
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x18(%rbp)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
store i32 0, i32* %1
store i64 -1, i64* %2
%4 = load i64, i64* %2
%5 = lshr i64 %4, 1
store i64 %5, i64* %2
store i64 0, i64* %2
store i64 0, i64* %2
%6 = load i64, i64* %2
%7 = lshr i64 %6, 1
store i64 %7, i64* %2
store i64 0, i64* %2
store i64 1, i64* %2
%8 = load i64, i64* %2
%9 = lshr i64 %8, 1
store i64 %9, i64* %2
store i64 0, i64* %2
store i64 -9223372036854775808, i64* %2
%10 = load i64, i64* %2
%11 = lshr i64 %10, 1
store i64 %11, i64* %2
store i64 0, i64* %2
store i64 -6148914691236517206, i64* %2
%12 = load i64, i64* %2
%13 = lshr i64 %12, 1
store i64 %13, i64* %2
store i64 0, i64* %2
store i64 16106127360, i64* %2
%14 = load i64, i64* %2
%15 = lshr i64 %14, 2
store i64 %15, i64* %2
store i64 0, i64* %2
store i64 -1, i64* %3
%16 = load i64, i64* %3
%17 = ashr i64 %16, 1
store i64 %17, i64* %3
store i64 0, i64* %3
store i64 0, i64* %3
%18 = load i64, i64* %3
%19 = ashr i64 %18, 1
store i64 %19, i64* %3
store i64 0, i64* %3
store i64 1, i64* %3
%20 = load i64, i64* %3
%21 = ashr i64 %20, 1
store i64 %21, i64* %3
store i64 0, i64* %3
store i64 -9223372036854775808, i64* %3
%22 = load i64, i64* %3
%23 = ashr i64 %22, 1
store i64 %23, i64* %3
store i64 0, i64* %3
store i64 -6148914691236517206, i64* %3
%24 = load i64, i64* %3
%25 = ashr i64 %24, 1
store i64 %25, i64* %3
store i64 0, i64* %3
store i64 16106127360, i64* %3
%26 = load i64, i64* %3
%27 = ashr i64 %26, 2
store i64 %27, i64* %3
store i64 0, i64* %3
store i64 -1, i64* %2
%28 = load i64, i64* %2
%29 = shl i64 %28, 1
store i64 %29, i64* %2
store i64 0, i64* %2
store i64 0, i64* %2
%30 = load i64, i64* %2
%31 = shl i64 %30, 1
store i64 %31, i64* %2
store i64 0, i64* %2
store i64 1, i64* %2
%32 = load i64, i64* %2
%33 = shl i64 %32, 1
store i64 %33, i64* %2
store i64 0, i64* %2
store i64 -9223372036854775808, i64* %2
%34 = load i64, i64* %2
%35 = shl i64 %34, 1
store i64 %35, i64* %2
store i64 0, i64* %2
store i64 -6148914691236517206, i64* %2
%36 = load i64, i64* %2
%37 = shl i64 %36, 1
store i64 %37, i64* %2
store i64 0, i64* %2
store i64 16106127360, i64* %2
%38 = load i64, i64* %2
%39 = shl i64 %38, 2
store i64 %39, i64* %2
store i64 0, i64* %2
store i64 -1, i64* %3
%40 = load i64, i64* %3
%41 = shl i64 %40, 1
store i64 %41, i64* %3
store i64 0, i64* %3
store i64 0, i64* %3
%42 = load i64, i64* %3
%43 = shl i64 %42, 1
store i64 %43, i64* %3
store i64 0, i64* %3
store i64 1, i64* %3
%44 = load i64, i64* %3
%45 = shl i64 %44, 1
store i64 %45, i64* %3
store i64 0, i64* %3
store i64 -9223372036854775808, i64* %3
%46 = load i64, i64* %3
%47 = shl i64 %46, 1
store i64 %47, i64* %3
store i64 0, i64* %3
store i64 -6148914691236517206, i64* %3
%48 = load i64, i64* %3
%49 = shl i64 %48, 1
store i64 %49, i64* %3
store i64 0, i64* %3
store i64 16106127360, i64* %3
%50 = load i64, i64* %3
%51 = shl i64 %50, 2
store i64 %51, i64* %3
store i64 0, i64* %3
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}