int main() {
  printf("<%d>\n", 12345678);
  printf("<%d>\n", -2);
  printf("<%u>\n", 452345u), printf("<%u>\n", 4294967294u);
  printf("<%Ld>\n", 37036629630ll);
  printf("<%Ld>\n", -37036629630ll);
  printf("<%Lu>\n", 37036629630ull);
  printf("<%Lu>\n", 18446744036672921986ull);
  printf("<%x>\n", 0x762);
  printf("<%Lx>\n", 0xf947483738473843ull);
  printf("<%016Lx>\n", 0x123ull);
  printf("<%08d>\n", 1234);
  printf("<%09x>\n", 0x847);
  printf("<%8d>\n", 1234);
  printf("<%9x>\n", 0x789);
  printf("<%s>\n", "foo");
  printf("<%.4s>\n", "abcdefgh");
  printf("<%g>\n", 1.5);
  printf("<%f>\n", 2.25);
  printf("<%f>\n", 0.5);
  printf("<%f>\n", 4.0);
  printf("<%c%c%c%c>\n", 'a', 'b', 'c', 'd');
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xf05(%rip),%rdi
mov    $0xbc614e,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
mov    $0xfffffffe,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x6e6f9,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed2(%rip),%rdi
mov    $0xfffffffe,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec5(%rip),%rdi
movabs $0x89f8e1e7e,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xead(%rip),%rdi
movabs $0xfffffff76071e182,%rsi
ff ff ff
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe9c(%rip),%rdi
movabs $0x89f8e1e7e,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe84(%rip),%rdi
movabs $0xfffffff76071e182,%rsi
ff ff ff
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe73(%rip),%rdi
mov    $0x762,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe66(%rip),%rdi
movabs $0xf947483738473843,%rsi
48 47 f9
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe55(%rip),%rdi
mov    $0x123,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe4c(%rip),%rdi
mov    $0x4d2,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe41(%rip),%rdi
mov    $0x847,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe36(%rip),%rdi
mov    $0x4d2,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe2a(%rip),%rdi
mov    $0x789,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe1e(%rip),%rdi
lea    0xe1d(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe13(%rip),%rdi
lea    0xe14(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe0f(%rip),%rdi
movsd  0xd95(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xdff(%rip),%rdi
movsd  0xd77(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xde9(%rip),%rdi
movsd  0xd59(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xdd3(%rip),%rdi
movsd  0xd3b(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xdc3(%rip),%rdi
mov    $0x61,%esi
mov    $0x62,%edx
mov    $0x63,%ecx
mov    $0x64,%r8d
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
lea    0xf04(%rip),%rbx
mov    %rbx,%rdi
mov    $0xbc614e,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xfffffffe,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee5(%rip),%rbx
mov    %rbx,%rdi
mov    $0x6e6f9,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xfffffffe,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec6(%rip),%rbx
movabs $0x89f8e1e7e,%r14
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
movabs $0xfffffff76071e182,%r15
ff ff ff
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe98(%rip),%rbx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe7e(%rip),%rdi
mov    $0x762,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe71(%rip),%rdi
movabs $0xf947483738473843,%rsi
48 47 f9
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe60(%rip),%rdi
mov    $0x123,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe57(%rip),%rdi
mov    $0x4d2,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe4c(%rip),%rdi
mov    $0x847,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe41(%rip),%rdi
mov    $0x4d2,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe35(%rip),%rdi
mov    $0x789,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe29(%rip),%rdi
lea    0xe28(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe1e(%rip),%rdi
lea    0xe1f(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe1a(%rip),%rdi
movsd  0xd88(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe0a(%rip),%rbx
movsd  0xd7a(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xd70(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xd66(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xdd3(%rip),%rdi
mov    $0x61,%esi
mov    $0x62,%edx
mov    $0x63,%ecx
mov    $0x64,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [6 x i8] c"<%d>\0A\00"
@.str.1 = [6 x i8] c"<%u>\0A\00"
@.str.2 = [7 x i8] c"<%Ld>\0A\00"
@.str.3 = [7 x i8] c"<%Lu>\0A\00"
@.str.4 = [6 x i8] c"<%x>\0A\00"
@.str.5 = [7 x i8] c"<%Lx>\0A\00"
@.str.6 = [10 x i8] c"<%016Lx>\0A\00"
@.str.7 = [8 x i8] c"<%08d>\0A\00"
@.str.8 = [8 x i8] c"<%09x>\0A\00"
@.str.9 = [7 x i8] c"<%8d>\0A\00"
@.str.10 = [7 x i8] c"<%9x>\0A\00"
@.str.11 = [6 x i8] c"<%s>\0A\00"
@.str.12 = [4 x i8] c"foo\00"
@.str.13 = [8 x i8] c"<%.4s>\0A\00"
@.str.14 = [9 x i8] c"abcdefgh\00"
@.str.15 = [6 x i8] c"<%g>\0A\00"
@.str.16 = [6 x i8] c"<%f>\0A\00"
@.str.17 = [12 x i8] c"<%c%c%c%c>\0A\00"
define i32 @main() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 12345678)
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 -2)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 452345)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 -2)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i64 37036629630)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i64 -37036629630)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i64 37036629630)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i64 -37036629630)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 1890)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i64 -484339032914446269)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i64 291)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 1234)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 2119)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 1234)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 1929)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), double 1.500000e+00)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), double 2.250000e+00)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), double 5.000000e-01)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), double 4.000000e+00)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0), i32 97, i32 98, i32 99, i32 100)
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"<%d>\0A\00"
@.str.1 = [6 x i8] c"<%u>\0A\00"
@.str.2 = [7 x i8] c"<%Ld>\0A\00"
@.str.3 = [7 x i8] c"<%Lu>\0A\00"
@.str.4 = [6 x i8] c"<%x>\0A\00"
@.str.5 = [7 x i8] c"<%Lx>\0A\00"
@.str.6 = [10 x i8] c"<%016Lx>\0A\00"
@.str.7 = [8 x i8] c"<%08d>\0A\00"
@.str.8 = [8 x i8] c"<%09x>\0A\00"
@.str.9 = [7 x i8] c"<%8d>\0A\00"
@.str.10 = [7 x i8] c"<%9x>\0A\00"
@.str.11 = [6 x i8] c"<%s>\0A\00"
@.str.12 = [4 x i8] c"foo\00"
@.str.13 = [8 x i8] c"<%.4s>\0A\00"
@.str.14 = [9 x i8] c"abcdefgh\00"
@.str.15 = [6 x i8] c"<%g>\0A\00"
@.str.16 = [6 x i8] c"<%f>\0A\00"
@.str.17 = [12 x i8] c"<%c%c%c%c>\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 12345678)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 -2)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 452345)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 -2)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i64 37036629630)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i64 -37036629630)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i64 37036629630)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i64 -37036629630)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 1890)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i64 -484339032914446269)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i64 291)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 1234)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 2119)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 1234)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 1929)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0))
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), double 1.500000e+00)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), double 2.250000e+00)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), double 5.000000e-01)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), double 4.000000e+00)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0), i32 97, i32 98, i32 99, i32 100)
ret i32 0
}