int main() {
  unsigned int ui;
  signed int si;
  ui = 0xFFFFFFFF;
  ui = ui >> 1;
  ui = 0;
  ui = 0x00000000;
  ui = ui >> 1;
  ui = 0;
  ui = 0x00000001;
  ui = ui >> 1;
  ui = 0;
  ui = 0x80000000;
  ui = ui >> 1;
  ui = 0;
  ui = 0xAAAAAAAA;
  ui = ui >> 1;
  ui = 0;
  ui = 0x0003C000;
  ui = ui >> 2;
  ui = 0;
  si = 0xFFFFFFFF;
  si = si >> 1;
  si = 0;
  si = 0x00000000;
  si = si >> 1;
  si = 0;
  si = 0x00000001;
  si = si >> 1;
  si = 0;
  si = 0x80000000;
  si = si >> 1;
  si = 0;
  si = 0xAAAAAAAA;
  si = si >> 1;
  si = 0;
  si = 0x0003C000;
  si = si >> 2;
  si = 0;
  ui = 0xFFFFFFFF;
  ui = ui << 1;
  ui = 0;
  ui = 0x00000000;
  ui = ui << 1;
  ui = 0;
  ui = 0x00000001;
  ui = ui << 1;
  ui = 0;
  ui = 0x80000000;
  ui = ui << 1;
  ui = 0;
  ui = 0xAAAAAAAA;
  ui = ui << 1;
  ui = 0;
  ui = 0x0003C000;
  ui = ui << 2;
  ui = 0;
  si = 0xFFFFFFFF;
  si = si << 1;
  si = 0;
  si = 0x00000000;
  si = si << 1;
  si = 0;
  si = 0x00000001;
  si = si << 1;
  si = 0;
  si = 0x80000000;
  si = si << 1;
  si = 0;
  si = 0xAAAAAAAA;
  si = si << 1;
  si = 0;
  si = 0x0003C000;
  si = si << 2;
  si = 0;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0xffffffff,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shr    $0x1,%eax
mov    %eax,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shr    $0x1,%eax
mov    %eax,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shr    $0x1,%eax
mov    %eax,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x80000000,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shr    $0x1,%eax
mov    %eax,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0xaaaaaaaa,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shr    $0x1,%eax
mov    %eax,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x3c000,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shr    $0x2,%eax
mov    %eax,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0xffffffff,-0xc(%rbp)
mov    -0xc(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x80000000,-0xc(%rbp)
mov    -0xc(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0xaaaaaaaa,-0xc(%rbp)
mov    -0xc(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x3c000,-0xc(%rbp)
mov    -0xc(%rbp),%eax
sar    $0x2,%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0xffffffff,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x80000000,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0xaaaaaaaa,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x3c000,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x2,%eax
mov    %eax,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0xffffffff,-0xc(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x80000000,-0xc(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0xaaaaaaaa,-0xc(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x3c000,-0xc(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x2,%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0xc(%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 i32
%3 = alloca i32
store i32 0, i32* %1
store i32 -1, i32* %2
%4 = load i32, i32* %2
%5 = lshr i32 %4, 1
store i32 %5, i32* %2
store i32 0, i32* %2
store i32 0, i32* %2
%6 = load i32, i32* %2
%7 = lshr i32 %6, 1
store i32 %7, i32* %2
store i32 0, i32* %2
store i32 1, i32* %2
%8 = load i32, i32* %2
%9 = lshr i32 %8, 1
store i32 %9, i32* %2
store i32 0, i32* %2
store i32 -2147483648, i32* %2
%10 = load i32, i32* %2
%11 = lshr i32 %10, 1
store i32 %11, i32* %2
store i32 0, i32* %2
store i32 -1431655766, i32* %2
%12 = load i32, i32* %2
%13 = lshr i32 %12, 1
store i32 %13, i32* %2
store i32 0, i32* %2
store i32 245760, i32* %2
%14 = load i32, i32* %2
%15 = lshr i32 %14, 2
store i32 %15, i32* %2
store i32 0, i32* %2
store i32 -1, i32* %3
%16 = load i32, i32* %3
%17 = ashr i32 %16, 1
store i32 %17, i32* %3
store i32 0, i32* %3
store i32 0, i32* %3
%18 = load i32, i32* %3
%19 = ashr i32 %18, 1
store i32 %19, i32* %3
store i32 0, i32* %3
store i32 1, i32* %3
%20 = load i32, i32* %3
%21 = ashr i32 %20, 1
store i32 %21, i32* %3
store i32 0, i32* %3
store i32 -2147483648, i32* %3
%22 = load i32, i32* %3
%23 = ashr i32 %22, 1
store i32 %23, i32* %3
store i32 0, i32* %3
store i32 -1431655766, i32* %3
%24 = load i32, i32* %3
%25 = ashr i32 %24, 1
store i32 %25, i32* %3
store i32 0, i32* %3
store i32 245760, i32* %3
%26 = load i32, i32* %3
%27 = ashr i32 %26, 2
store i32 %27, i32* %3
store i32 0, i32* %3
store i32 -1, i32* %2
%28 = load i32, i32* %2
%29 = shl i32 %28, 1
store i32 %29, i32* %2
store i32 0, i32* %2
store i32 0, i32* %2
%30 = load i32, i32* %2
%31 = shl i32 %30, 1
store i32 %31, i32* %2
store i32 0, i32* %2
store i32 1, i32* %2
%32 = load i32, i32* %2
%33 = shl i32 %32, 1
store i32 %33, i32* %2
store i32 0, i32* %2
store i32 -2147483648, i32* %2
%34 = load i32, i32* %2
%35 = shl i32 %34, 1
store i32 %35, i32* %2
store i32 0, i32* %2
store i32 -1431655766, i32* %2
%36 = load i32, i32* %2
%37 = shl i32 %36, 1
store i32 %37, i32* %2
store i32 0, i32* %2
store i32 245760, i32* %2
%38 = load i32, i32* %2
%39 = shl i32 %38, 2
store i32 %39, i32* %2
store i32 0, i32* %2
store i32 -1, i32* %3
%40 = load i32, i32* %3
%41 = shl i32 %40, 1
store i32 %41, i32* %3
store i32 0, i32* %3
store i32 0, i32* %3
%42 = load i32, i32* %3
%43 = shl i32 %42, 1
store i32 %43, i32* %3
store i32 0, i32* %3
store i32 1, i32* %3
%44 = load i32, i32* %3
%45 = shl i32 %44, 1
store i32 %45, i32* %3
store i32 0, i32* %3
store i32 -2147483648, i32* %3
%46 = load i32, i32* %3
%47 = shl i32 %46, 1
store i32 %47, i32* %3
store i32 0, i32* %3
store i32 -1431655766, i32* %3
%48 = load i32, i32* %3
%49 = shl i32 %48, 1
store i32 %49, i32* %3
store i32 0, i32* %3
store i32 245760, i32* %3
%50 = load i32, i32* %3
%51 = shl i32 %50, 2
store i32 %51, i32* %3
store i32 0, i32* %3
ret i32 0
}

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