#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 */
char *print_vfpumatrix(int, char *);
char *print_vfpumpair(int, char *);
char *print_vfpumtriple(int, char *);
char *print_vfpupair(int, char *);
char *print_vfpuquad(int, char *);
char *print_vfpusingle(int, char *);
char *print_vfputriple(int, char *);
char *print_vfpureg(int reg, char type, char *output) {
  switch (type) {
  case 's':
    return print_vfpusingle(reg, output);
    break;
  case 'q':
    return print_vfpuquad(reg, output);
    break;
  case 'p':
    return print_vfpupair(reg, output);
    break;
  case 't':
    return print_vfputriple(reg, output);
    break;
  case 'm':
    return print_vfpumpair(reg, output);
    break;
  case 'n':
    return print_vfpumtriple(reg, output);
    break;
  case 'o':
    return print_vfpumatrix(reg, output);
    break;
  default:
    break;
  };
  return output;
}


x86 assembly (clang, -O0):
<print_vfpureg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %sil,%al
mov    %edi,-0xc(%rbp)
mov    %al,-0xd(%rbp)
mov    %rdx,-0x18(%rbp)
movsbl -0xd(%rbp),%eax
add    $0xffffff93,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x7,%eax
ja     1242 <print_vfpureg+0xd2>
mov    -0x20(%rbp),%rax
lea    0xe5a(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0xc(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1050 <print_vfpusingle@plt>
mov    %rax,-0x8(%rbp)
jmp    124f <print_vfpureg+0xdf>
mov    -0xc(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1070 <print_vfpuquad@plt>
mov    %rax,-0x8(%rbp)
jmp    124f <print_vfpureg+0xdf>
mov    -0xc(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1030 <print_vfpupair@plt>
mov    %rax,-0x8(%rbp)
jmp    124f <print_vfpureg+0xdf>
mov    -0xc(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1060 <print_vfputriple@plt>
mov    %rax,-0x8(%rbp)
jmp    124f <print_vfpureg+0xdf>
mov    -0xc(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1040 <print_vfpumpair@plt>
mov    %rax,-0x8(%rbp)
jmp    124f <print_vfpureg+0xdf>
mov    -0xc(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1080 <print_vfpumtriple@plt>
mov    %rax,-0x8(%rbp)
jmp    124f <print_vfpureg+0xdf>
mov    -0xc(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1090 <print_vfpumatrix@plt>
mov    %rax,-0x8(%rbp)
jmp    124f <print_vfpureg+0xdf>
jmp    1247 <print_vfpureg+0xd7>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_vfpureg>:
add    $0xffffff93,%esi
cmp    $0x7,%esi
ja     11a8 <print_vfpureg+0x38>
lea    0xe81(%rip),%rax
movslq (%rax,%rsi,4),%rcx
add    %rax,%rcx
jmp    *%rcx
mov    %rdx,%rsi
jmp    1040 <print_vfpumpair@plt>
mov    %rdx,%rsi
jmp    1080 <print_vfpumtriple@plt>
mov    %rdx,%rsi
jmp    1090 <print_vfpumatrix@plt>
mov    %rdx,%rsi
jmp    1030 <print_vfpupair@plt>
mov    %rdx,%rax
ret
mov    %rdx,%rsi
jmp    1050 <print_vfpusingle@plt>
mov    %rdx,%rsi
jmp    1060 <print_vfputriple@plt>
mov    %rdx,%rsi
jmp    1070 <print_vfpuquad@plt>

LLVM IR (-O0):
define i8* @print_vfpureg(i32 %0, i8 signext %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8
%7 = alloca i8*
store i32 %0, i32* %5
store i8 %1, i8* %6
store i8* %2, i8** %7
%8 = load i8, i8* %6
%9 = sext i8 %8 to i32
switch i32 %9, label %38 [
i32 115, label %10
i32 113, label %14
i32 112, label %18
i32 116, label %22
i32 109, label %26
i32 110, label %30
i32 111, label %34
]
10: ; preds = %3
%11 = load i32, i32* %5
%12 = load i8*, i8** %7
%13 = call i8* @print_vfpusingle(i32 %11, i8* %12)
store i8* %13, i8** %4
br label %41
14: ; preds = %3
%15 = load i32, i32* %5
%16 = load i8*, i8** %7
%17 = call i8* @print_vfpuquad(i32 %15, i8* %16)
store i8* %17, i8** %4
br label %41
18: ; preds = %3
%19 = load i32, i32* %5
%20 = load i8*, i8** %7
%21 = call i8* @print_vfpupair(i32 %19, i8* %20)
store i8* %21, i8** %4
br label %41
22: ; preds = %3
%23 = load i32, i32* %5
%24 = load i8*, i8** %7
%25 = call i8* @print_vfputriple(i32 %23, i8* %24)
store i8* %25, i8** %4
br label %41
26: ; preds = %3
%27 = load i32, i32* %5
%28 = load i8*, i8** %7
%29 = call i8* @print_vfpumpair(i32 %27, i8* %28)
store i8* %29, i8** %4
br label %41
30: ; preds = %3
%31 = load i32, i32* %5
%32 = load i8*, i8** %7
%33 = call i8* @print_vfpumtriple(i32 %31, i8* %32)
store i8* %33, i8** %4
br label %41
34: ; preds = %3
%35 = load i32, i32* %5
%36 = load i8*, i8** %7
%37 = call i8* @print_vfpumatrix(i32 %35, i8* %36)
store i8* %37, i8** %4
br label %41
38: ; preds = %3
br label %39
39: ; preds = %38
%40 = load i8*, i8** %7
store i8* %40, i8** %4
br label %41
41: ; preds = %39, %34, %30, %26, %22, %18, %14, %10
%42 = load i8*, i8** %4
ret i8* %42
}

LLVM IR (-O2):
define i8* @print_vfpureg(i32 %0, i8 signext %1, i8* %2) {
%4 = sext i8 %1 to i32
switch i32 %4, label %19 [
i32 115, label %5
i32 113, label %7
i32 112, label %9
i32 116, label %11
i32 109, label %13
i32 110, label %15
i32 111, label %17
]
5: ; preds = %3
%6 = tail call i8* @print_vfpusingle(i32 %0, i8* %2)
br label %19
7: ; preds = %3
%8 = tail call i8* @print_vfpuquad(i32 %0, i8* %2)
br label %19
9: ; preds = %3
%10 = tail call i8* @print_vfpupair(i32 %0, i8* %2)
br label %19
11: ; preds = %3
%12 = tail call i8* @print_vfputriple(i32 %0, i8* %2)
br label %19
13: ; preds = %3
%14 = tail call i8* @print_vfpumpair(i32 %0, i8* %2)
br label %19
15: ; preds = %3
%16 = tail call i8* @print_vfpumtriple(i32 %0, i8* %2)
br label %19
17: ; preds = %3
%18 = tail call i8* @print_vfpumatrix(i32 %0, i8* %2)
br label %19
19: ; preds = %3, %17, %15, %13, %11, %9, %7, %5
%20 = phi i8* [ %18, %17 ], [ %16, %15 ], [ %14, %13 ], [ %12, %11 ], [ %10, %9 ], [ %8, %7 ], [ %6, %5 ], [ %2, %3 ]
ret i8* %20
}