void func5(void) {
  asm volatile("movmskps %xmm0, %eax\n"
               "movmskpd %xmm0, %eax\n"
               "sqrtps %xmm1, %xmm0\n"
               "sqrtss %xmm1, %xmm0\n"
               "sqrtpd %xmm1, %xmm0\n"
               "sqrtsd %xmm1, %xmm0\n"
               "punpcklbw (%eax), %mm0\n"
               "punpcklbw (%eax), %xmm0\n"
               "pshufw $0x12, (%eax), %mm0\n"
               "pshufd $0x12, (%eax), %xmm0\n"
               "pshufhw $0x12, (%eax), %xmm0\n"
               "pshuflw $0x12, (%eax), %xmm0\n"
               "psrlw $0x12, %mm0\n"
               "psrlw $0x12, %xmm0\n"
               "psraw $0x12, %mm0\n"
               "psraw $0x12, %xmm0\n"
               "psrld $0x12, %mm0\n"
               "psrlq $0x14, %xmm0\n"
               "psrldq $0x14, %xmm0\n"
               "prefetchnta 0x12345\n"
               "cvtpi2ps %mm2, %xmm2\n"
               "cvtsd2si %xmm0, %eax\n"
               "cvtpd2pi (%eax), %mm0\n"
               "setna (%eax)\n"
               "shld $0x12, %eax, (%ebx)\n"
               "shld %cl, %eax, (%ebx)\n"
               "cmpps $0x12, %xmm1, %xmm2\n"
               "pinsrw $0x12, (%eax), %mm0\n"
               "cmpxchg8b 0x1234\n"
               "lfence\n"
               "fxsave (%eax)\n"
               "bt $0x12, (%eax)\n"
               "pxor (%eax), %mm0\n"
               "crc32b (%eax), %ebx\n"
               "pextrb $0x12, %xmm0, (%eax)\n"
               "extractps $0x12, %xmm0, %eax\n"
               "roundps $0x12, (%eax), %xmm3\n"
               "palignr $0x12, (%eax), %mm0\n"
               "palignr $0x12, (%eax), %xmm0\n");
}


x86 assembly (clang, -O0):
<func5>:
push   %rbp
mov    %rsp,%rbp
movmskps %xmm0,%eax
movmskpd %xmm0,%eax
sqrtps %xmm1,%xmm0
sqrtss %xmm1,%xmm0
sqrtpd %xmm1,%xmm0
sqrtsd %xmm1,%xmm0
punpcklbw (%eax),%mm0
punpcklbw (%eax),%xmm0
pshufw $0x12,(%eax),%mm0
pshufd $0x12,(%eax),%xmm0
pshufhw $0x12,(%eax),%xmm0
pshuflw $0x12,(%eax),%xmm0
psrlw  $0x12,%mm0
psrlw  $0x12,%xmm0
psraw  $0x12,%mm0
psraw  $0x12,%xmm0
psrld  $0x12,%mm0
psrlq  $0x14,%xmm0
psrldq $0x14,%xmm0
prefetchnta 0x12345
cvtpi2ps %mm2,%xmm2
cvtsd2si %xmm0,%eax
cvtpd2pi (%eax),%mm0
setbe  (%eax)
shld   $0x12,%eax,(%ebx)
shld   %cl,%eax,(%ebx)
cmpps  $0x12,%xmm1,%xmm2
pinsrw $0x12,(%eax),%mm0
cmpxchg8b 0x1234
lfence
fxsave (%eax)
btl    $0x12,(%eax)
pxor   (%eax),%mm0
crc32b (%eax),%ebx
pextrb $0x12,%xmm0,(%eax)
extractps $0x12,%xmm0,%eax
roundps $0x12,(%eax),%xmm3
palignr $0x12,(%eax),%mm0
palignr $0x12,(%eax),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<func5>:
movmskps %xmm0,%eax
movmskpd %xmm0,%eax
sqrtps %xmm1,%xmm0
sqrtss %xmm1,%xmm0
sqrtpd %xmm1,%xmm0
sqrtsd %xmm1,%xmm0
punpcklbw (%eax),%mm0
punpcklbw (%eax),%xmm0
pshufw $0x12,(%eax),%mm0
pshufd $0x12,(%eax),%xmm0
pshufhw $0x12,(%eax),%xmm0
pshuflw $0x12,(%eax),%xmm0
psrlw  $0x12,%mm0
psrlw  $0x12,%xmm0
psraw  $0x12,%mm0
psraw  $0x12,%xmm0
psrld  $0x12,%mm0
psrlq  $0x14,%xmm0
psrldq $0x14,%xmm0
prefetchnta 0x12345
cvtpi2ps %mm2,%xmm2
cvtsd2si %xmm0,%eax
cvtpd2pi (%eax),%mm0
setbe  (%eax)
shld   $0x12,%eax,(%ebx)
shld   %cl,%eax,(%ebx)
cmpps  $0x12,%xmm1,%xmm2
pinsrw $0x12,(%eax),%mm0
cmpxchg8b 0x1234
lfence
fxsave (%eax)
btl    $0x12,(%eax)
pxor   (%eax),%mm0
crc32b (%eax),%ebx
pextrb $0x12,%xmm0,(%eax)
extractps $0x12,%xmm0,%eax
roundps $0x12,(%eax),%xmm3
palignr $0x12,(%eax),%mm0
palignr $0x12,(%eax),%xmm0
ret

LLVM IR (-O0):
define void @func5() {
ret void
}

LLVM IR (-O2):
define void @func5() {
tail call void asm sideeffect "movmskps %xmm0, %eax\0Amovmskpd %xmm0, %eax\0Asqrtps %xmm1, %xmm0\0Asqrtss %xmm1, %xmm0\0Asqrtpd %xmm1, %xmm0\0Asqrtsd %xmm1, %xmm0\0Apunpcklbw (%eax), %mm0\0Apunpcklbw (%eax), %xmm0\0Apshufw $$0x12, (%eax), %mm0\0Apshufd $$0x12, (%eax), %xmm0\0Apshufhw $$0x12, (%eax), %xmm0\0Apshuflw $$0x12, (%eax), %xmm0\0Apsrlw $$0x12, %mm0\0Apsrlw $$0x12, %xmm0\0Apsraw $$0x12, %mm0\0Apsraw $$0x12, %xmm0\0Apsrld $$0x12, %mm0\0Apsrlq $$0x14, %xmm0\0Apsrldq $$0x14, %xmm0\0Aprefetchnta 0x12345\0Acvtpi2ps %mm2, %xmm2\0Acvtsd2si %xmm0, %eax\0Acvtpd2pi (%eax), %mm0\0Asetna (%eax)\0Ashld $$0x12, %eax, (%ebx)\0Ashld %cl, %eax, (%ebx)\0Acmpps $$0x12, %xmm1, %xmm2\0Apinsrw $$0x12, (%eax), %mm0\0Acmpxchg8b 0x1234\0Alfence\0Afxsave (%eax)\0Abt $$0x12, (%eax)\0Apxor (%eax), %mm0\0Acrc32b (%eax), %ebx\0Apextrb $$0x12, %xmm0, (%eax)\0Aextractps $$0x12, %xmm0, %eax\0Aroundps $$0x12, (%eax), %xmm3\0Apalignr $$0x12, (%eax), %mm0\0Apalignr $$0x12, (%eax), %xmm0\0A", "~{dirflag},~{fpsr},~{flags}"()
ret void
}