void test10(int x, float f, int i, long long lli) {
  printf("%s");
  printf("%@", 12);
  printf("\0");
  printf("xs\0");
  printf("%*d\n");
  printf("%*.*d\n", x);
  printf("%*d\n", f, x);
  printf("%*.*d\n", x, f, x);
  printf("%**\n");
  printf("%n", &i);
  printf("%d%d\n", x);
  printf("%d\n", x, x);
  printf("%W%d%Z\n", x, x, x);
  printf("%");
  printf("%.d", x);
  printf("%.", x);
  printf("%f", 4);
  printf("%qd", lli);
  printf("hhX %hhX", (unsigned char)10);
  printf("llX %llX", (long long)10);
  printf("%d", (unsigned char)10);
  printf("%d", (long long)10);
  printf("%Lf\n", (long double)1.0);
  printf("%f\n", (long double)1.0);
  printf("%.0Lf", (long double)1.0);
  printf("%c\n", "x");
  printf("%c\n", 1.23);
}


x86 assembly (clang, -O0):
<test10>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
movss  %xmm0,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
mov    $0xc,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x4(%rbp),%esi
lea    0xe78(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x4(%rbp),%edx
lea    0xe60(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe59(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe50(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
lea    0xe3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
mov    -0x4(%rbp),%edx
lea    0xe2c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x4(%rbp),%ecx
lea    0xe19(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe13(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
lea    0xe04(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
lea    0xdf7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdec(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xdd8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdce(%rip),%rdi
mov    $0xa,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdc4(%rip),%rdi
mov    $0xa,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdba(%rip),%rdi
mov    $0xa,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xda7(%rip),%rdi
mov    $0xa,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    %rsp,%rax
fld1
fstpt  (%rax)
lea    0xd90(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rsp,%rax
fld1
fstpt  (%rax)
lea    0xd80(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rsp,%rax
fld1
fstpt  (%rax)
lea    0xd6f(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd67(%rip),%rdi
lea    0xd64(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd52(%rip),%rdi
movsd  0xce6(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test10>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %rdx,%r14
movss  %xmm0,0x18(%rsp)
mov    %edi,%ebp
mov    %esi,0x24(%rsp)
lea    0xec8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xebd(%rip),%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf07(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe9f(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe93(%rip),%r15
mov    %r15,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movss  0x18(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x18(%rsp)
mov    %rbx,%rdi
mov    %ebp,%esi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %ebp,%esi
movsd  0x18(%rsp),%xmm0
mov    %ebp,%edx
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe57(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe4e(%rip),%rdi
lea    0x24(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe3e(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe30(%rip),%rdi
mov    %ebp,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe22(%rip),%rdi
mov    %ebp,%esi
mov    %ebp,%edx
mov    %ebp,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x25,%edi
call   1030 <putchar@plt>
lea    0xe0c(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe00(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdf3(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xde3(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdd6(%rip),%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdcc(%rip),%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdc2(%rip),%rbx
mov    %rbx,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
fld1
fld    %st(0)
fstpt  0x18(%rsp)
fstpt  (%rsp)
lea    0xd95(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
fldt   0x18(%rsp)
fstpt  (%rsp)
lea    0xd85(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
fldt   0x18(%rsp)
fstpt  (%rsp)
lea    0xd74(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd6c(%rip),%rbx
lea    0xd69(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0xcf1(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [3 x i8] c"%@\00"
@.str.2 = [2 x i8] zeroinitializer
@.str.3 = [4 x i8] c"xs\00\00"
@.str.4 = [5 x i8] c"%*d\0A\00"
@.str.5 = [7 x i8] c"%*.*d\0A\00"
@.str.6 = [5 x i8] c"%**\0A\00"
@.str.7 = [3 x i8] c"%n\00"
@.str.8 = [6 x i8] c"%d%d\0A\00"
@.str.9 = [4 x i8] c"%d\0A\00"
@.str.10 = [8 x i8] c"%W%d%Z\0A\00"
@.str.11 = [2 x i8] c"%\00"
@.str.12 = [4 x i8] c"%.d\00"
@.str.13 = [3 x i8] c"%.\00"
@.str.14 = [3 x i8] c"%f\00"
@.str.15 = [4 x i8] c"%qd\00"
@.str.16 = [9 x i8] c"hhX %hhX\00"
@.str.17 = [9 x i8] c"llX %llX\00"
@.str.18 = [3 x i8] c"%d\00"
@.str.19 = [5 x i8] c"%Lf\0A\00"
@.str.20 = [4 x i8] c"%f\0A\00"
@.str.21 = [6 x i8] c"%.0Lf\00"
@.str.22 = [4 x i8] c"%c\0A\00"
@.str.23 = [2 x i8] c"x\00"
define void @test10(i32 %0, float %1, i32 %2, i64 %3) {
%5 = alloca i32
%6 = alloca float
%7 = alloca i32
%8 = alloca i64
store i32 %0, i32* %5
store float %1, float* %6
store i32 %2, i32* %7
store i64 %3, i64* %8
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 12)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%14 = load i32, i32* %5
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %14)
%16 = load float, float* %6
%17 = fpext float %16 to double
%18 = load i32, i32* %5
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %17, i32 %18)
%20 = load i32, i32* %5
%21 = load float, float* %6
%22 = fpext float %21 to double
%23 = load i32, i32* %5
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %20, double %22, i32 %23)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %7)
%27 = load i32, i32* %5
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 %27)
%29 = load i32, i32* %5
%30 = load i32, i32* %5
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 %29, i32 %30)
%32 = load i32, i32* %5
%33 = load i32, i32* %5
%34 = load i32, i32* %5
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 %32, i32 %33, i32 %34)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%37 = load i32, i32* %5
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 %37)
%39 = load i32, i32* %5
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i32 %39)
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i32 4)
%42 = load i64, i64* %8
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i64 %42)
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0), i32 10)
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i64 10)
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i32 10)
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i64 10)
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), x86_fp80 0xK3FFF8000000000000000)
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0), x86_fp80 0xK3FFF8000000000000000)
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0), x86_fp80 0xK3FFF8000000000000000)
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0), double 1.230000e+00)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [3 x i8] c"%@\00"
@.str.3 = [4 x i8] c"xs\00\00"
@.str.4 = [5 x i8] c"%*d\0A\00"
@.str.5 = [7 x i8] c"%*.*d\0A\00"
@.str.6 = [5 x i8] c"%**\0A\00"
@.str.7 = [3 x i8] c"%n\00"
@.str.8 = [6 x i8] c"%d%d\0A\00"
@.str.9 = [4 x i8] c"%d\0A\00"
@.str.10 = [8 x i8] c"%W%d%Z\0A\00"
@.str.12 = [4 x i8] c"%.d\00"
@.str.13 = [3 x i8] c"%.\00"
@.str.14 = [3 x i8] c"%f\00"
@.str.15 = [4 x i8] c"%qd\00"
@.str.16 = [9 x i8] c"hhX %hhX\00"
@.str.17 = [9 x i8] c"llX %llX\00"
@.str.18 = [3 x i8] c"%d\00"
@.str.19 = [5 x i8] c"%Lf\0A\00"
@.str.20 = [4 x i8] c"%f\0A\00"
@.str.21 = [6 x i8] c"%.0Lf\00"
@.str.22 = [4 x i8] c"%c\0A\00"
@.str.23 = [2 x i8] c"x\00"
define void @test10(i32 %0, float %1, i32 %2, i64 %3) {
%5 = alloca i32
store i32 %2, i32* %5
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 12)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %0)
%11 = fpext float %1 to double
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %11, i32 %0)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %0, double %11, i32 %0)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %5)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 %0)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 %0, i32 %0)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 %0, i32 %0, i32 %0)
%19 = call i32 @putchar(i32 37)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 %0)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i32 %0)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i32 4)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i64 %3)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0), i32 10)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i64 10)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i32 10)
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i64 10)
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), x86_fp80 0xK3FFF8000000000000000)
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0), x86_fp80 0xK3FFF8000000000000000)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0), x86_fp80 0xK3FFF8000000000000000)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0), double 1.230000e+00)
ret void
}