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
Odin
OpenCL C
Pascal
Pony
Python
Racket
Ruby
Rust
Snowball
Scala
Slang
Solidity
Spice
SPIR-V
Swift
LLVM TableGen
Toit
TypeScript Native
V
Vala
Visual Basic
Vyper
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 @vf32(<96 x i16>* %in.vec, <32 x i16>* %out.vec0, <32 x i16>* %out.vec1, <32 x i16>* %out.vec2) 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, <32 x i32> <i32 0, i32 3, i32 6, i32 9, i32 12, i32 15, i32 18, i32 21, i32 24, i32 27, i32 30, i32 33, i32 36, i32 39, i32 42, i32 45, i32 48, i32 51, i32 54, i32 57, i32 60, i32 63, i32 66, i32 69, i32 72, i32 75, i32 78, i32 81, i32 84, i32 87, i32 90, i32 93> %strided.vec1 = shufflevector <96 x i16> %wide.vec, <96 x i16> poison, <32 x i32> <i32 1, i32 4, i32 7, i32 10, i32 13, i32 16, i32 19, i32 22, i32 25, i32 28, i32 31, i32 34, i32 37, i32 40, i32 43, i32 46, i32 49, i32 52, i32 55, i32 58, i32 61, i32 64, i32 67, i32 70, i32 73, i32 76, i32 79, i32 82, i32 85, i32 88, i32 91, i32 94> %strided.vec2 = shufflevector <96 x i16> %wide.vec, <96 x i16> poison, <32 x i32> <i32 2, i32 5, i32 8, i32 11, i32 14, i32 17, i32 20, i32 23, i32 26, i32 29, i32 32, i32 35, i32 38, i32 41, i32 44, i32 47, i32 50, i32 53, i32 56, i32 59, i32 62, i32 65, i32 68, i32 71, i32 74, i32 77, i32 80, i32 83, i32 86, i32 89, i32 92, i32 95> tail call void asm sideeffect "# LLVM-MCA-END", "~{dirflag},~{fpsr},~{flags}"() store <32 x i16> %strided.vec0, <32 x i16>* %out.vec0, align 32 store <32 x i16> %strided.vec1, <32 x i16>* %out.vec1, align 32 store <32 x i16> %strided.vec2, <32 x i16>* %out.vec2, 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
vmovdqa ymm9, ymmword ptr [rip + .LCPI0_0] # ymm9 = <255,255,u,u,0,0,255,255,u,u,0,0,255,255,u,u,0,0,255,255,u,u,0,0,255,255,u,u,0,0,255,255> vpblendvb ymm8, ymm5, ymm7, ymm9 vpermq ymm10, ymm8, 78 # ymm10 = ymm8[2,3,0,1] vpblendw ymm8, ymm8, ymm10, 146 # ymm8 = ymm8[0],ymm10[1],ymm8[2,3],ymm10[4],ymm8[5,6],ymm10[7],ymm8[8],ymm10[9],ymm8[10,11],ymm10[12],ymm8[13,14],ymm10[15] vmovdqa ymm10, ymmword ptr [rip + .LCPI0_1] # ymm10 = [0,1,6,7,12,13,2,3,4,5,14,15,8,9,10,11,16,17,22,23,28,29,18,19,20,21,30,31,24,25,26,27] vpshufb ymm8, ymm8, ymm10 vpblendw xmm0, xmm4, xmm6, 36 # xmm0 = xmm4[0,1],xmm6[2],xmm4[3,4],xmm6[5],xmm4[6,7] vmovdqa xmm12, xmmword ptr [rip + .LCPI0_2] # xmm12 = [4,5,14,15,0,1,2,3,8,9,14,15,4,5,10,11] vpshufb xmm0, xmm0, xmm12 vinserti128 ymm0, ymm0, xmm0, 1 vpblendw ymm0, ymm0, ymm8, 7 # ymm0 = ymm8[0,1,2],ymm0[3,4,5,6,7],ymm8[8,9,10],ymm0[11,12,13,14,15] vpshufhw xmm8, xmm8, 198 # xmm8 = xmm8[0,1,2,3,6,5,4,7] vpblendd ymm8, ymm8, ymm0, 240 # ymm8 = ymm8[0,1,2,3],ymm0[4,5,6,7] vpblendvb ymm0, ymm2, ymm11, ymm9 vpermq ymm9, ymm0, 78 # ymm9 = ymm0[2,3,0,1] vpblendw ymm0, ymm0, ymm9, 146 # ymm0 = ymm0[0],ymm9[1],ymm0[2,3],ymm9[4],ymm0[5,6],ymm9[7],ymm0[8],ymm9[9],ymm0[10,11],ymm9[12],ymm0[13,14],ymm9[15] vpshufb ymm0, ymm0, ymm10 vpblendw xmm1, xmm13, xmm3, 36 # xmm1 = xmm13[0,1],xmm3[2],xmm13[3,4],xmm3[5],xmm13[6,7] vpshufb xmm1, xmm1, xmm12 vinserti128 ymm1, ymm0, xmm1, 1 vpblendw ymm1, ymm1, ymm0, 7 # ymm1 = ymm0[0,1,2],ymm1[3,4,5,6,7],ymm0[8,9,10],ymm1[11,12,13,14,15] vpshufhw xmm0, xmm0, 198 # xmm0 = xmm0[0,1,2,3,6,5,4,7] vpblendd ymm9, ymm0, ymm1, 240 # ymm9 = ymm0[0,1,2,3],ymm1[4,5,6,7] vmovdqa ymm14, ymmword ptr [rip + .LCPI0_3] # ymm14 = <255,255,0,0,u,u,255,255,0,0,u,u,255,255,0,0,u,u,255,255,0,0,u,u,255,255,0,0,u,u,255,255> vpblendvb ymm1, ymm7, ymm5, ymm14 vpermq ymm10, ymm1, 78 # ymm10 = ymm1[2,3,0,1] vpblendw ymm1, ymm1, ymm10, 36 # ymm1 = ymm1[0,1],ymm10[2],ymm1[3,4],ymm10[5],ymm1[6,7,8,9],ymm10[10],ymm1[11,12],ymm10[13],ymm1[14,15] vmovdqa ymm12, ymmword ptr [rip + .LCPI0_4] # ymm12 = [2,3,8,9,14,15,4,5,12,13,10,11,0,1,6,7,18,19,24,25,30,31,20,21,28,29,26,27,16,17,22,23] vpshufb ymm1, ymm1, ymm12 vpblendw xmm0, xmm6, xmm4, 36 # xmm0 = xmm6[0,1],xmm4[2],xmm6[3,4],xmm4[5],xmm6[6,7] vmovdqa xmm15, xmmword ptr [rip + .LCPI0_5] # xmm15 = [4,5,4,5,4,5,4,5,10,11,0,1,6,7,12,13] vpshufb xmm0, xmm0, xmm15 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] vpshufhw xmm1, xmm1, 57 # xmm1 = xmm1[0,1,2,3,5,6,7,4] vpblendd ymm10, ymm1, ymm0, 240 # ymm10 = ymm1[0,1,2,3],ymm0[4,5,6,7] vpblendvb ymm0, ymm11, ymm2, ymm14 vpermq ymm1, ymm0, 78 # ymm1 = ymm0[2,3,0,1] vpblendw ymm0, ymm0, ymm1, 36 # ymm0 = ymm0[0,1],ymm1[2],ymm0[3,4],ymm1[5],ymm0[6,7,8,9],ymm1[10],ymm0[11,12],ymm1[13],ymm0[14,15] vpshufb ymm0, ymm0, ymm12 vpblendw xmm1, xmm3, xmm13, 36 # xmm1 = xmm3[0,1],xmm13[2],xmm3[3,4],xmm13[5],xmm3[6,7] vpshufb xmm1, xmm1, xmm15 vinserti128 ymm1, ymm0, xmm1, 1 vpblendw ymm1, ymm1, ymm0, 7 # ymm1 = ymm0[0,1,2],ymm1[3,4,5,6,7],ymm0[8,9,10],ymm1[11,12,13,14,15] vpshufhw xmm0, xmm0, 57 # xmm0 = xmm0[0,1,2,3,5,6,7,4] vpblendd ymm0, ymm0, ymm1, 240 # ymm0 = ymm0[0,1,2,3],ymm1[4,5,6,7] vmovdqa ymm1, ymmword ptr [rip + .LCPI0_6] # ymm1 = <u,u,255,255,0,0,u,u,255,255,0,0,u,u,255,255,0,0,u,u,255,255,0,0,u,u,255,255,0,0,u,u> vpblendvb ymm5, ymm7, ymm5, ymm1 vpermq ymm7, ymm5, 78 # ymm7 = ymm5[2,3,0,1] vpblendw ymm5, ymm5, ymm7, 73 # ymm5 = ymm7[0],ymm5[1,2],ymm7[3],ymm5[4,5],ymm7[6],ymm5[7],ymm7[8],ymm5[9,10],ymm7[11],ymm5[12,13],ymm7[14],ymm5[15] vmovdqa ymm7, ymmword ptr [rip + .LCPI0_7] # ymm7 = [4,5,10,11,0,1,6,7,12,13,2,3,8,9,14,15,20,21,26,27,16,17,22,23,28,29,18,19,24,25,30,31] vpshufb ymm5, ymm5, ymm7 vpblendw xmm4, xmm4, xmm6, 146 # xmm4 = xmm4[0],xmm6[1],xmm4[2,3],xmm6[4],xmm4[5,6],xmm6[7] vmovdqa xmm6, xmmword ptr [rip + .LCPI0_8] # xmm6 = [0,1,2,3,0,1,6,7,12,13,2,3,8,9,14,15] vpshufb xmm4, xmm4, xmm6 vinserti128 ymm4, ymm0, xmm4, 1 vpblendd ymm4, ymm5, ymm4, 224 # ymm4 = ymm5[0,1,2,3,4],ymm4[5,6,7] vpblendvb ymm1, ymm11, ymm2, ymm1 vpermq ymm2, ymm1, 78 # ymm2 = ymm1[2,3,0,1] vpblendw ymm1, ymm1, ymm2, 73 # ymm1 = ymm2[0],ymm1[1,2],ymm2[3],ymm1[4,5],ymm2[6],ymm1[7],ymm2[8],ymm1[9,10],ymm2[11],ymm1[12,13],ymm2[14],ymm1[15] vpshufb ymm1, ymm1, ymm7 vpblendw xmm2, xmm13, xmm3, 146 # xmm2 = xmm13[0],xmm3[1],xmm13[2,3],xmm3[4],xmm13[5,6],xmm3[7] vpshufb xmm2, xmm2, xmm6 vinserti128 ymm2, ymm0, xmm2, 1 vpblendd ymm1, ymm1, ymm2, 224 # ymm1 = ymm1[0,1,2,3,4],ymm2[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
CE on Bluesky
About the author
Statistics
Changelog
Version tree