Thanks for using Compiler Explorer
Sponsors
Jakt
C++
Ada
Analysis
Android Java
Android Kotlin
Assembly
C
C3
Carbon
C++ (Circle)
CIRCT
Clean
CMake
CMakeScript
COBOL
C++ for OpenCL
MLIR
Cppx
Cppx-Blue
Cppx-Gold
Cpp2-cppfront
Crystal
C#
CUDA C++
D
Dart
Elixir
Erlang
Fortran
F#
GLSL
Go
Haskell
HLSL
Hook
Hylo
IL
ispc
Java
Julia
Kotlin
LLVM IR
LLVM MIR
Modula-2
Nim
Objective-C
Objective-C++
OCaml
OpenCL C
Pascal
Pony
Python
Racket
Ruby
Rust
Snowball
Scala
Solidity
Spice
SPIR-V
Swift
LLVM TableGen
Toit
TypeScript Native
V
Vala
Visual Basic
WASM
Zig
Javascript
GIMPLE
Ygen
llvm source #1
Output
Compile to binary object
Link to binary
Execute the code
Intel asm syntax
Demangle identifiers
Verbose demangling
Filters
Unused labels
Library functions
Directives
Comments
Horizontal whitespace
Debug intrinsics
Compiler
clang (assertions trunk)
clang (trunk)
clang 10.0.0
clang 10.0.1
clang 11.0.0
clang 11.0.1
clang 12.0.0
clang 12.0.1
clang 13.0.0
clang 14.0.0
clang 15.0.0
clang 16.0.0
clang 17.0.1
clang 18.1.0
clang 19.1.0
clang 4.0.1
clang 5.0.0
clang 6.0.0
clang 7.0.0
clang 8.0.0
clang 9.0.0
llc (assertions trunk)
llc (trunk)
llc 10.0.0
llc 10.0.1
llc 11.0.0
llc 11.0.1
llc 12.0.0
llc 12.0.1
llc 13.0.0
llc 14.0.0
llc 15.0.0
llc 16.0.0
llc 17.0.1
llc 18.1.0
llc 19.1.0
llc 3.2
llc 3.3
llc 3.9.1
llc 4.0.0
llc 4.0.1
llc 5.0.0
llc 6.0.0
llc 7.0.0
llc 8.0.0
llc 9.0.0
opt (assertions trunk)
opt (trunk)
opt 10.0.0
opt 10.0.1
opt 11.0.0
opt 11.0.1
opt 12.0.0
opt 12.0.1
opt 13.0.0
opt 14.0.0
opt 15.0.0
opt 16.0.0
opt 17.0.1
opt 18.1.0
opt 19.1.0
opt 3.2
opt 3.3
opt 3.9.1
opt 4.0.0
opt 4.0.1
opt 5.0.0
opt 6.0.0
opt 7.0.0
opt 8.0.0
opt 9.0.0
Options
Source code
define void @vf8(<48 x i16>* %in.vec, <8 x i16>* %out.vec0, <8 x i16>* %out.vec1, <8 x i16>* %out.vec2, <8 x i16>* %out.vec3, <8 x i16>* %out.vec4, <8 x i16>* %out.vec5) nounwind { %wide.vec = load <48 x i16>, <48 x i16>* %in.vec, align 32 tail call void asm sideeffect "# LLVM-MCA-BEGIN", "~{dirflag},~{fpsr},~{flags}"() %strided.vec0 = shufflevector <48 x i16> %wide.vec, <48 x i16> poison, <8 x i32> <i32 0, i32 6, i32 12, i32 18, i32 24, i32 30, i32 36, i32 42> %strided.vec1 = shufflevector <48 x i16> %wide.vec, <48 x i16> poison, <8 x i32> <i32 1, i32 7, i32 13, i32 19, i32 25, i32 31, i32 37, i32 43> %strided.vec2 = shufflevector <48 x i16> %wide.vec, <48 x i16> poison, <8 x i32> <i32 2, i32 8, i32 14, i32 20, i32 26, i32 32, i32 38, i32 44> %strided.vec3 = shufflevector <48 x i16> %wide.vec, <48 x i16> poison, <8 x i32> <i32 3, i32 9, i32 15, i32 21, i32 27, i32 33, i32 39, i32 45> %strided.vec4 = shufflevector <48 x i16> %wide.vec, <48 x i16> poison, <8 x i32> <i32 4, i32 10, i32 16, i32 22, i32 28, i32 34, i32 40, i32 46> %strided.vec5 = shufflevector <48 x i16> %wide.vec, <48 x i16> poison, <8 x i32> <i32 5, i32 11, i32 17, i32 23, i32 29, i32 35, i32 41, i32 47> tail call void asm sideeffect "# LLVM-MCA-END", "~{dirflag},~{fpsr},~{flags}"() store <8 x i16> %strided.vec0, <8 x i16>* %out.vec0, align 32 store <8 x i16> %strided.vec1, <8 x i16>* %out.vec1, align 32 store <8 x i16> %strided.vec2, <8 x i16>* %out.vec2, align 32 store <8 x i16> %strided.vec3, <8 x i16>* %out.vec3, align 32 store <8 x i16> %strided.vec4, <8 x i16>* %out.vec4, align 32 store <8 x i16> %strided.vec5, <8 x i16>* %out.vec5, align 32 ret void }
analysis source #2
Output
Compile to binary object
Link to binary
Execute the code
Intel asm syntax
Demangle identifiers
Verbose demangling
Filters
Unused labels
Library functions
Directives
Comments
Horizontal whitespace
Debug intrinsics
Compiler
OSACA (0.6.1)
llvm-mca (assertions trunk)
llvm-mca (trunk)
Options
Source code
vpbroadcastw xmm8, xmm8 vpslld xmm3, xmm1, 16 vpsrldq xmm6, xmm9, 2 # xmm6 = xmm9[2,3,4,5,6,7,8,9,10,11,12,13,14,15],zero,zero vpunpcklwd xmm3, xmm6, xmm3 # xmm3 = xmm6[0],xmm3[0],xmm6[1],xmm3[1],xmm6[2],xmm3[2],xmm6[3],xmm3[3] vpblendd ymm6, ymm2, ymm4, 146 # ymm6 = ymm2[0],ymm4[1],ymm2[2,3],ymm4[4],ymm2[5,6],ymm4[7] vpshufb xmm7, xmm6, xmmword ptr [rip + .LCPI0_0] # xmm7 = xmm6[0,1,12,13,u,u,4,5,u,u,u,u,12,13,14,15] vextracti128 xmm5, ymm6, 1 vpshufd xmm0, xmm5, 200 # xmm0 = xmm5[0,2,0,3] vpshufhw xmm0, xmm0, 232 # xmm0 = xmm0[0,1,2,3,4,6,6,7] vpblendw xmm0, xmm7, xmm0, 52 # xmm0 = xmm7[0,1],xmm0[2],xmm7[3],xmm0[4,5],xmm7[6,7] vpblendd xmm10, xmm0, xmm3, 8 # xmm10 = xmm0[0,1,2],xmm3[3] vpunpcklwd xmm0, xmm8, xmm1 # xmm0 = xmm8[0],xmm1[0],xmm8[1],xmm1[1],xmm8[2],xmm1[2],xmm8[3],xmm1[3] vpshufb xmm5, xmm5, xmmword ptr [rip + .LCPI0_1] # xmm5 = xmm5[u,u,u,u,10,11,u,u,2,3,14,15,u,u,u,u] vpshufb xmm6, xmm6, xmmword ptr [rip + .LCPI0_2] # xmm6 = xmm6[2,3,14,15,u,u,6,7,u,u,u,u,12,13,14,15] vpblendw xmm5, xmm6, xmm5, 52 # xmm5 = xmm6[0,1],xmm5[2],xmm6[3],xmm5[4,5],xmm6[6,7] vpblendd xmm8, xmm5, xmm0, 8 # xmm8 = xmm5[0,1,2],xmm0[3] vpblendd ymm0, ymm2, ymm4, 36 # ymm0 = ymm2[0,1],ymm4[2],ymm2[3,4],ymm4[5],ymm2[6,7] vpshufd xmm6, xmm0, 230 # xmm6 = xmm0[2,1,2,3] vpshuflw xmm7, xmm6, 38 # xmm7 = xmm6[2,1,2,0,4,5,6,7] vextracti128 xmm0, ymm0, 1 vpshufd xmm0, xmm0, 108 # xmm0 = xmm0[0,3,2,1] vpshuflw xmm3, xmm0, 224 # xmm3 = xmm0[0,0,2,3,4,5,6,7] vpshufd xmm3, xmm3, 244 # xmm3 = xmm3[0,1,3,3] vpblendw xmm3, xmm3, xmm7, 9 # xmm3 = xmm7[0],xmm3[1,2],xmm7[3],xmm3[4,5,6,7] vpblendd xmm7, xmm9, xmm1, 4 # xmm7 = xmm9[0,1],xmm1[2],xmm9[3] vpshufb xmm5, xmm7, xmmword ptr [rip + .LCPI0_3] # xmm5 = xmm7[u,u,u,u,u,u,u,u,u,u,0,1,12,13,8,9] vpblendw xmm3, xmm3, xmm5, 224 # xmm3 = xmm3[0,1,2,3,4],xmm5[5,6,7] vpshuflw xmm5, xmm6, 103 # xmm5 = xmm6[3,1,2,1,4,5,6,7] vpshuflw xmm0, xmm0, 244 # xmm0 = xmm0[0,1,3,3,4,5,6,7] vpshufhw xmm0, xmm0, 255 # xmm0 = xmm0[0,1,2,3,7,7,7,7] vpblendw xmm0, xmm0, xmm5, 9 # xmm0 = xmm5[0],xmm0[1,2],xmm5[3],xmm0[4,5,6,7] vpshufb xmm5, xmm7, xmmword ptr [rip + .LCPI0_4] # xmm5 = xmm7[u,u,u,u,u,u,u,u,u,u,2,3,14,15,10,11] vpblendw xmm0, xmm0, xmm5, 224 # xmm0 = xmm0[0,1,2,3,4],xmm5[5,6,7] vpblendd ymm2, ymm4, ymm2, 36 # ymm2 = ymm4[0,1],ymm2[2],ymm4[3,4],ymm2[5],ymm4[6,7] vextracti128 xmm4, ymm2, 1 vpshuflw xmm5, xmm4, 170 # xmm5 = xmm4[2,2,2,2,4,5,6,7] vpshufb xmm6, xmm2, xmmword ptr [rip + .LCPI0_5] # xmm6 = xmm2[8,9,u,u,0,1,12,13,u,u,u,u,u,u,u,u] vpblendw xmm5, xmm6, xmm5, 18 # xmm5 = xmm6[0],xmm5[1],xmm6[2,3],xmm5[4],xmm6[5,6,7] vpblendd xmm1, xmm1, xmm9, 2 # xmm1 = xmm1[0],xmm9[1],xmm1[2,3] vpshufb xmm6, xmm1, xmmword ptr [rip + .LCPI0_6] # xmm6 = xmm1[u,u,u,u,u,u,u,u,u,u,4,5,0,1,12,13] vpblendw xmm5, xmm5, xmm6, 224 # xmm5 = xmm5[0,1,2,3,4],xmm6[5,6,7] vpshufb xmm2, xmm2, xmmword ptr [rip + .LCPI0_7] # xmm2 = xmm2[10,11,u,u,2,3,14,15,u,u,u,u,u,u,u,u] vpshufd xmm4, xmm4, 229 # xmm4 = xmm4[1,1,2,3] vpshufhw xmm4, xmm4, 85 # xmm4 = xmm4[0,1,2,3,5,5,5,5] vpblendw xmm2, xmm2, xmm4, 18 # xmm2 = xmm2[0],xmm4[1],xmm2[2,3],xmm4[4],xmm2[5,6,7] vpshufb xmm1, xmm1, xmmword ptr [rip + .LCPI0_8] # xmm1 = xmm1[u,u,u,u,u,u,u,u,u,u,6,7,2,3,14,15] vpblendw xmm1, xmm2, xmm1, 224 # xmm1 = xmm2[0,1,2,3,4],xmm1[5,6,7]
Become a Patron
Sponsor on GitHub
Donate via PayPal
Source on GitHub
Mailing list
Installed libraries
Wiki
Report an issue
How it works
Contact the author
CE on Mastodon
About the author
Statistics
Changelog
Version tree