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 @vf16(<96 x i16>* %in.vec, <16 x i16>* %out.vec0, <16 x i16>* %out.vec1, <16 x i16>* %out.vec2, <16 x i16>* %out.vec3, <16 x i16>* %out.vec4, <16 x i16>* %out.vec5) nounwind { %wide.vec = load <96 x i16>, <96 x i16>* %in.vec, align 32 tail call void asm sideeffect "# LLVM-MCA-BEGIN", "~{dirflag},~{fpsr},~{flags}"() %strided.vec0 = shufflevector <96 x i16> %wide.vec, <96 x i16> poison, <16 x i32> <i32 0, i32 6, i32 12, i32 18, i32 24, i32 30, i32 36, i32 42, i32 48, i32 54, i32 60, i32 66, i32 72, i32 78, i32 84, i32 90> %strided.vec1 = shufflevector <96 x i16> %wide.vec, <96 x i16> poison, <16 x i32> <i32 1, i32 7, i32 13, i32 19, i32 25, i32 31, i32 37, i32 43, i32 49, i32 55, i32 61, i32 67, i32 73, i32 79, i32 85, i32 91> %strided.vec2 = shufflevector <96 x i16> %wide.vec, <96 x i16> poison, <16 x i32> <i32 2, i32 8, i32 14, i32 20, i32 26, i32 32, i32 38, i32 44, i32 50, i32 56, i32 62, i32 68, i32 74, i32 80, i32 86, i32 92> %strided.vec3 = shufflevector <96 x i16> %wide.vec, <96 x i16> poison, <16 x i32> <i32 3, i32 9, i32 15, i32 21, i32 27, i32 33, i32 39, i32 45, i32 51, i32 57, i32 63, i32 69, i32 75, i32 81, i32 87, i32 93> %strided.vec4 = shufflevector <96 x i16> %wide.vec, <96 x i16> poison, <16 x i32> <i32 4, i32 10, i32 16, i32 22, i32 28, i32 34, i32 40, i32 46, i32 52, i32 58, i32 64, i32 70, i32 76, i32 82, i32 88, i32 94> %strided.vec5 = shufflevector <96 x i16> %wide.vec, <96 x i16> poison, <16 x i32> <i32 5, i32 11, i32 17, i32 23, i32 29, i32 35, i32 41, i32 47, i32 53, i32 59, i32 65, i32 71, i32 77, i32 83, i32 89, i32 95> tail call void asm sideeffect "# LLVM-MCA-END", "~{dirflag},~{fpsr},~{flags}"() store <16 x i16> %strided.vec0, <16 x i16>* %out.vec0, align 32 store <16 x i16> %strided.vec1, <16 x i16>* %out.vec1, align 32 store <16 x i16> %strided.vec2, <16 x i16>* %out.vec2, align 32 store <16 x i16> %strided.vec3, <16 x i16>* %out.vec3, align 32 store <16 x i16> %strided.vec4, <16 x i16>* %out.vec4, align 32 store <16 x i16> %strided.vec5, <16 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
vmovdqu ymmword ptr [rsp - 104], ymm1 # 32-byte Spill vpblendd ymm8, ymm1, ymm15, 36 # ymm8 = ymm1[0,1],ymm15[2],ymm1[3,4],ymm15[5],ymm1[6,7] vextracti128 xmm0, ymm8, 1 vpshufb xmm6, xmm0, xmmword ptr [rip + .LCPI0_0] # xmm6 = xmm0[0,1,4,5,4,5,u,u,0,1,12,13,u,u,4,5] vpshuflw xmm7, xmm8, 170 # xmm7 = xmm8[2,2,2,2,4,5,6,7] vpshufd xmm7, xmm7, 164 # xmm7 = xmm7[0,1,2,2] vpblendw xmm6, xmm6, xmm7, 72 # xmm6 = xmm6[0,1,2],xmm7[3],xmm6[4,5],xmm7[6],xmm6[7] vinserti128 ymm9, ymm0, xmm6, 1 vperm2i128 ymm12, ymm2, ymm5, 49 # ymm12 = ymm2[2,3],ymm5[2,3] vpshufd ymm7, ymm12, 104 # ymm7 = ymm12[0,2,2,1,4,6,6,5] vpshufhw ymm11, ymm7, 170 # ymm11 = ymm7[0,1,2,3,6,6,6,6,8,9,10,11,14,14,14,14] vperm2i128 ymm10, ymm2, ymm5, 32 # ymm10 = ymm2[0,1],ymm5[0,1] vpshufd ymm5, ymm10, 236 # ymm5 = ymm10[0,3,2,3,4,7,6,7] vpshuflw ymm2, ymm5, 232 # ymm2 = ymm5[0,2,2,3,4,5,6,7,8,10,10,11,12,13,14,15] vpshufd ymm2, ymm2, 164 # ymm2 = ymm2[0,1,2,2,4,5,6,6] vpblendw ymm2, ymm2, ymm11, 132 # ymm2 = ymm2[0,1],ymm11[2],ymm2[3,4,5,6],ymm11[7],ymm2[8,9],ymm11[10],ymm2[11,12,13,14],ymm11[15] vpblendd ymm11, ymm13, ymm14, 146 # ymm11 = ymm13[0],ymm14[1],ymm13[2,3],ymm14[4],ymm13[5,6],ymm14[7] vpshufb xmm1, xmm11, xmmword ptr [rip + .LCPI0_1] # xmm1 = xmm11[0,1,12,13,u,u,4,5,u,u,u,u,12,13,14,15] vextracti128 xmm3, ymm11, 1 vpshufd xmm4, xmm3, 200 # xmm4 = xmm3[0,2,0,3] vpshufhw xmm4, xmm4, 232 # xmm4 = xmm4[0,1,2,3,4,6,6,7] vpblendw xmm1, xmm1, xmm4, 52 # xmm1 = xmm1[0,1],xmm4[2],xmm1[3],xmm4[4,5],xmm1[6,7] vpblendd ymm1, ymm1, ymm2, 56 # ymm1 = ymm1[0,1,2],ymm2[3,4,5],ymm1[6,7] vpblendw ymm2, ymm1, ymm9, 248 # ymm2 = ymm1[0,1,2],ymm9[3,4,5,6,7],ymm1[8,9,10],ymm9[11,12,13,14,15] vpblendd ymm1, ymm1, ymm2, 240 # ymm1 = ymm1[0,1,2,3],ymm2[4,5,6,7] vmovdqu ymmword ptr [rsp - 40], ymm1 # 32-byte Spill vpshufhw xmm1, xmm8, 85 # xmm1 = xmm8[0,1,2,3,5,5,5,5] vpshufb xmm0, xmm0, xmmword ptr [rip + .LCPI0_2] # xmm0 = xmm0[6,7,2,3,4,5,u,u,2,3,14,15,u,u,6,7] vpblendw xmm0, xmm0, xmm1, 72 # xmm0 = xmm0[0,1,2],xmm1[3],xmm0[4,5],xmm1[6],xmm0[7] vinserti128 ymm0, ymm0, xmm0, 1 vpshufd ymm1, ymm12, 102 # ymm1 = ymm12[2,1,2,1,6,5,6,5] vpshuflw ymm1, ymm1, 85 # ymm1 = ymm1[1,1,1,1,4,5,6,7,9,9,9,9,12,13,14,15] vpshuflw ymm4, ymm5, 237 # ymm4 = ymm5[1,3,2,3,4,5,6,7,9,11,10,11,12,13,14,15] vpshufhw ymm4, ymm4, 85 # ymm4 = ymm4[0,1,2,3,5,5,5,5,8,9,10,11,13,13,13,13] vpblendw ymm1, ymm4, ymm1, 132 # ymm1 = ymm4[0,1],ymm1[2],ymm4[3,4,5,6],ymm1[7],ymm4[8,9],ymm1[10],ymm4[11,12,13,14],ymm1[15] vpshufb xmm3, xmm3, xmmword ptr [rip + .LCPI0_3] # xmm3 = xmm3[u,u,u,u,10,11,u,u,2,3,14,15,u,u,u,u] vpshufb xmm4, xmm11, xmmword ptr [rip + .LCPI0_4] # xmm4 = xmm11[2,3,14,15,u,u,6,7,u,u,u,u,12,13,14,15] vpblendw xmm3, xmm4, xmm3, 52 # xmm3 = xmm4[0,1],xmm3[2],xmm4[3],xmm3[4,5],xmm4[6,7] vpblendd ymm1, ymm3, ymm1, 56 # ymm1 = ymm3[0,1,2],ymm1[3,4,5],ymm3[6,7] vpblendw ymm0, ymm1, ymm0, 248 # ymm0 = ymm1[0,1,2],ymm0[3,4,5,6,7],ymm1[8,9,10],ymm0[11,12,13,14,15] vpblendd ymm0, ymm1, ymm0, 240 # ymm0 = ymm1[0,1,2,3],ymm0[4,5,6,7] vmovdqu ymmword ptr [rsp - 72], ymm0 # 32-byte Spill vmovdqu ymm11, ymmword ptr [rsp - 104] # 32-byte Reload vpblendd ymm0, ymm15, ymm11, 36 # ymm0 = ymm15[0,1],ymm11[2],ymm15[3,4],ymm11[5],ymm15[6,7] vextracti128 xmm1, ymm0, 1 vpshufd xmm1, xmm1, 100 # xmm1 = xmm1[0,1,2,1] vpshufhw xmm3, xmm1, 38 # xmm3 = xmm1[0,1,2,3,6,5,6,4] vpshufd xmm0, xmm0, 198 # xmm0 = xmm0[2,1,0,3] vpshuflw xmm4, xmm0, 0 # xmm4 = xmm0[0,0,0,0,4,5,6,7] vpshufhw xmm4, xmm4, 224 # xmm4 = xmm4[0,1,2,3,4,4,6,7] vpblendw xmm3, xmm4, xmm3, 144 # xmm3 = xmm4[0,1,2,3],xmm3[4],xmm4[5,6],xmm3[7] vpshufd ymm4, ymm10, 197 # ymm4 = ymm10[1,1,0,3,5,5,4,7] vpshufhw ymm4, ymm4, 224 # ymm4 = ymm4[0,1,2,3,4,4,6,7,8,9,10,11,12,12,14,15] vpshufd ymm9, ymm12, 236 # ymm9 = ymm12[0,3,2,3,4,7,6,7] vpshuflw ymm8, ymm9, 224 # ymm8 = ymm9[0,0,2,3,4,5,6,7,8,8,10,11,12,13,14,15] vpshufhw ymm8, ymm8, 0 # ymm8 = ymm8[0,1,2,3,4,4,4,4,8,9,10,11,12,12,12,12] vpblendw ymm4, ymm8, ymm4, 97 # ymm4 = ymm4[0],ymm8[1,2,3,4],ymm4[5,6],ymm8[7],ymm4[8],ymm8[9,10,11,12],ymm4[13,14],ymm8[15] vpblendd ymm8, ymm13, ymm14, 36 # ymm8 = ymm13[0,1],ymm14[2],ymm13[3,4],ymm14[5],ymm13[6,7] vpshufd xmm2, xmm8, 230 # xmm2 = xmm8[2,1,2,3] vextracti128 xmm5, ymm8, 1 vpshufd xmm5, xmm5, 108 # xmm5 = xmm5[0,3,2,1] vpshuflw xmm6, xmm5, 224 # xmm6 = xmm5[0,0,2,3,4,5,6,7] vpshufhw xmm6, xmm6, 170 # xmm6 = xmm6[0,1,2,3,6,6,6,6] vpshuflw xmm7, xmm2, 38 # xmm7 = xmm2[2,1,2,0,4,5,6,7] vpblendw xmm6, xmm6, xmm7, 9 # xmm6 = xmm7[0],xmm6[1,2],xmm7[3],xmm6[4,5,6,7] vinserti128 ymm3, ymm0, xmm3, 1 vpblendw ymm3, ymm3, ymm4, 7 # ymm3 = ymm4[0,1,2],ymm3[3,4,5,6,7],ymm4[8,9,10],ymm3[11,12,13,14,15] vpblendw xmm4, xmm4, xmm6, 31 # xmm4 = xmm6[0,1,2,3,4],xmm4[5,6,7] vpblendd ymm8, ymm4, ymm3, 240 # ymm8 = ymm4[0,1,2,3],ymm3[4,5,6,7] vpshufhw xmm1, xmm1, 103 # xmm1 = xmm1[0,1,2,3,7,5,6,5] vpshuflw xmm0, xmm0, 85 # xmm0 = xmm0[1,1,1,1,4,5,6,7] vpshufhw xmm0, xmm0, 244 # xmm0 = xmm0[0,1,2,3,4,5,7,7] vpblendw xmm0, xmm0, xmm1, 144 # xmm0 = xmm0[0,1,2,3],xmm1[4],xmm0[5,6],xmm1[7] vpshufb ymm1, ymm10, ymmword ptr [rip + .LCPI0_5] # ymm1 = ymm10[6,7,u,u,u,u,u,u,u,u,2,3,14,15,u,u,22,23,u,u,u,u,u,u,u,u,18,19,30,31,u,u] vpshuflw ymm3, ymm9, 244 # ymm3 = ymm9[0,1,3,3,4,5,6,7,8,9,11,11,12,13,14,15] vpshufhw ymm3, ymm3, 85 # ymm3 = ymm3[0,1,2,3,5,5,5,5,8,9,10,11,13,13,13,13] vpblendw ymm1, ymm3, ymm1, 97 # ymm1 = ymm1[0],ymm3[1,2,3,4],ymm1[5,6],ymm3[7],ymm1[8],ymm3[9,10,11,12],ymm1[13,14],ymm3[15] vinserti128 ymm0, ymm0, xmm0, 1 vpblendw ymm0, ymm0, ymm1, 7 # ymm0 = ymm1[0,1,2],ymm0[3,4,5,6,7],ymm1[8,9,10],ymm0[11,12,13,14,15] vpshuflw xmm2, xmm2, 103 # xmm2 = xmm2[3,1,2,1,4,5,6,7] vpshuflw xmm3, xmm5, 244 # xmm3 = xmm5[0,1,3,3,4,5,6,7] vpshufhw xmm3, xmm3, 255 # xmm3 = xmm3[0,1,2,3,7,7,7,7] vpblendw xmm2, xmm3, xmm2, 9 # xmm2 = xmm2[0],xmm3[1,2],xmm2[3],xmm3[4,5,6,7] vpblendw xmm1, xmm1, xmm2, 31 # xmm1 = xmm2[0,1,2,3,4],xmm1[5,6,7] vpblendd ymm9, ymm1, ymm0, 240 # ymm9 = ymm1[0,1,2,3],ymm0[4,5,6,7] vpblendd ymm0, ymm14, ymm13, 36 # ymm0 = ymm14[0,1],ymm13[2],ymm14[3,4],ymm13[5],ymm14[6,7] vextracti128 xmm1, ymm0, 1 vpshuflw xmm2, xmm1, 170 # xmm2 = xmm1[2,2,2,2,4,5,6,7] vpshufb xmm3, xmm0, xmmword ptr [rip + .LCPI0_6] # xmm3 = xmm0[8,9,u,u,0,1,12,13,u,u,12,13,12,13,14,15] vpblendw xmm2, xmm3, xmm2, 18 # xmm2 = xmm3[0],xmm2[1],xmm3[2,3],xmm2[4],xmm3[5,6,7] vpshufd ymm3, ymm10, 102 # ymm3 = ymm10[2,1,2,1,6,5,6,5] vpshufhw ymm4, ymm3, 170 # ymm4 = ymm3[0,1,2,3,6,6,6,6,8,9,10,11,14,14,14,14] vpshufd ymm5, ymm12, 196 # ymm5 = ymm12[0,1,0,3,4,5,4,7] vpshuflw ymm6, ymm5, 170 # ymm6 = ymm5[2,2,2,2,4,5,6,7,10,10,10,10,12,13,14,15] vpshufhw ymm6, ymm6, 132 # ymm6 = ymm6[0,1,2,3,4,5,4,6,8,9,10,11,12,13,12,14] vpblendw ymm4, ymm6, ymm4, 33 # ymm4 = ymm4[0],ymm6[1,2,3,4],ymm4[5],ymm6[6,7],ymm4[8],ymm6[9,10,11,12],ymm4[13],ymm6[14,15] vmovdqa xmm6, xmmword ptr [rip + .LCPI0_7] # xmm6 = [255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0] vpblendvb ymm2, ymm4, ymm2, ymm6 vpblendd ymm4, ymm11, ymm15, 146 # ymm4 = ymm11[0],ymm15[1],ymm11[2,3],ymm15[4],ymm11[5,6],ymm15[7] vpshuflw ymm3, ymm3, 85 # ymm3 = ymm3[1,1,1,1,4,5,6,7,9,9,9,9,12,13,14,15] vpshufd ymm3, ymm3, 244 # ymm3 = ymm3[0,1,3,3,4,5,7,7] vpshuflw ymm5, ymm5, 255 # ymm5 = ymm5[3,3,3,3,4,5,6,7,11,11,11,11,12,13,14,15] vpshufhw ymm5, ymm5, 212 # ymm5 = ymm5[0,1,2,3,4,5,5,7,8,9,10,11,12,13,13,15] vpblendw ymm3, ymm5, ymm3, 33 # ymm3 = ymm3[0],ymm5[1,2,3,4],ymm3[5],ymm5[6,7],ymm3[8],ymm5[9,10,11,12],ymm3[13],ymm5[14,15] vpshufb xmm0, xmm0, xmmword ptr [rip + .LCPI0_9] # xmm0 = xmm0[10,11,u,u,2,3,14,15,u,u,10,11,12,13,14,15] vpshufd xmm1, xmm1, 229 # xmm1 = xmm1[1,1,2,3] vpshufhw xmm1, xmm1, 85 # xmm1 = xmm1[0,1,2,3,5,5,5,5] vpblendw xmm0, xmm0, xmm1, 18 # xmm0 = xmm0[0],xmm1[1],xmm0[2,3],xmm1[4],xmm0[5,6,7] vextracti128 xmm1, ymm4, 1 vpblendvb ymm0, ymm3, ymm0, ymm6 vpshufb xmm3, xmm1, xmmword ptr [rip + .LCPI0_8] # xmm3 = xmm1[u,u,u,u,u,u,u,u,8,9,u,u,0,1,12,13] vpshufd xmm4, xmm4, 108 # xmm4 = xmm4[0,3,2,1] vpshuflw xmm5, xmm4, 132 # xmm5 = xmm4[0,1,0,2,4,5,6,7] vpshufhw xmm5, xmm5, 170 # xmm5 = xmm5[0,1,2,3,6,6,6,6] vpblendw xmm3, xmm5, xmm3, 208 # xmm3 = xmm5[0,1,2,3],xmm3[4],xmm5[5],xmm3[6,7] vinserti128 ymm3, ymm0, xmm3, 1 vpblendd ymm2, ymm2, ymm3, 224 # ymm2 = ymm2[0,1,2,3,4],ymm3[5,6,7] vpshufb xmm1, xmm1, xmmword ptr [rip + .LCPI0_10] # xmm1 = xmm1[u,u,u,u,u,u,u,u,10,11,u,u,2,3,14,15] vpshuflw xmm3, xmm4, 212 # xmm3 = xmm4[0,1,1,3,4,5,6,7] vpshufd xmm3, xmm3, 244 # xmm3 = xmm3[0,1,3,3] vpblendw xmm1, xmm3, xmm1, 208 # xmm1 = xmm3[0,1,2,3],xmm1[4],xmm3[5],xmm1[6,7] vinserti128 ymm1, ymm0, xmm1, 1 vpblendd ymm0, ymm0, ymm1, 224 # ymm0 = ymm0[0,1,2,3,4],ymm1[5,6,7] vmovups ymm1, ymmword ptr [rsp - 40] # 32-byte Reload vmovups ymm1, ymmword ptr [rsp - 72] # 32-byte Reload
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