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 @load_i32_stride6_vf8(<48 x i32>* %in.vec, <8 x i32>* %out.vec0, <8 x i32>* %out.vec1, <8 x i32>* %out.vec2, <8 x i32>* %out.vec3, <8 x i32>* %out.vec4, <8 x i32>* %out.vec5) nounwind { %wide.vec = load <48 x i32>, <48 x i32>* %in.vec, align 32 tail call void asm sideeffect "# LLVM-MCA-BEGIN", "~{dirflag},~{fpsr},~{flags}"() %strided.vec0 = shufflevector <48 x i32> %wide.vec, <48 x i32> 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 i32> %wide.vec, <48 x i32> 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 i32> %wide.vec, <48 x i32> 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 i32> %wide.vec, <48 x i32> 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 i32> %wide.vec, <48 x i32> 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 i32> %wide.vec, <48 x i32> 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 i32> %strided.vec0, <8 x i32>* %out.vec0, align 32 store <8 x i32> %strided.vec1, <8 x i32>* %out.vec1, align 32 store <8 x i32> %strided.vec2, <8 x i32>* %out.vec2, align 32 store <8 x i32> %strided.vec3, <8 x i32>* %out.vec3, align 32 store <8 x i32> %strided.vec4, <8 x i32>* %out.vec4, align 32 store <8 x i32> %strided.vec5, <8 x i32>* %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
vmovaps xmm4, xmmword ptr [rip + .LCPI0_0] # xmm4 = <0,6,4,u> vblendps ymm8, ymm3, ymm5, 48 # ymm8 = ymm3[0,1,2,3],ymm5[4,5],ymm3[6,7] vpermps ymm4, ymm4, ymm8 vperm2f128 ymm9, ymm7, ymm6, 32 # ymm9 = ymm7[0,1],ymm6[0,1] vpermilps ymm10, ymm9, 164 # ymm10 = ymm9[0,1,2,2,4,5,6,6] vpermilps ymm11, ymm6, 170 # ymm11 = ymm6[2,2,2,2,6,6,6,6] vblendps ymm10, ymm10, ymm11, 34 # ymm10 = ymm10[0],ymm11[1],ymm10[2,3,4],ymm11[5],ymm10[6,7] vblendps ymm4, ymm4, ymm10, 56 # ymm4 = ymm4[0,1,2],ymm10[3,4,5],ymm4[6,7] vblendps ymm10, ymm0, ymm1, 48 # ymm10 = ymm0[0,1,2,3],ymm1[4,5],ymm0[6,7] vbroadcastsd ymm11, qword ptr [rip + .LCPI0_1] # ymm11 = [8589934596,8589934596,8589934596,8589934596] vpermps ymm11, ymm11, ymm10 vblendps ymm4, ymm4, ymm11, 192 # ymm4 = ymm4[0,1,2,3,4,5],ymm11[6,7] vmovaps xmm11, xmmword ptr [rip + .LCPI0_2] # xmm11 = <1,7,5,u> vpermps ymm8, ymm11, ymm8 vpermilps ymm9, ymm9, 229 # ymm9 = ymm9[1,1,2,3,5,5,6,7] vpermilps ymm11, ymm6, 238 # ymm11 = ymm6[2,3,2,3,6,7,6,7] vblendps ymm9, ymm9, ymm11, 34 # ymm9 = ymm9[0],ymm11[1],ymm9[2,3,4],ymm11[5],ymm9[6,7] vblendps ymm8, ymm8, ymm9, 56 # ymm8 = ymm8[0,1,2],ymm9[3,4,5],ymm8[6,7] vbroadcastsd ymm9, qword ptr [rip + .LCPI0_3] # ymm9 = [12884901893,12884901893,12884901893,12884901893] vpermps ymm9, ymm9, ymm10 vblendps ymm8, ymm8, ymm9, 192 # ymm8 = ymm8[0,1,2,3,4,5],ymm9[6,7] vblendps ymm9, ymm7, ymm6, 204 # ymm9 = ymm7[0,1],ymm6[2,3],ymm7[4,5],ymm6[6,7] vpermilps ymm9, ymm9, 226 # ymm9 = ymm9[2,0,2,3,6,4,6,7] vpermpd ymm9, ymm9, 200 # ymm9 = ymm9[0,2,0,3] vpermilps ymm10, ymm3, 238 # ymm10 = ymm3[2,3,2,3,6,7,6,7] vpermilps ymm11, ymm5, 224 # ymm11 = ymm5[0,0,2,3,4,4,6,7] vblendps ymm10, ymm11, ymm10, 17 # ymm10 = ymm10[0],ymm11[1,2,3],ymm10[4],ymm11[5,6,7] vpermpd ymm10, ymm10, 236 # ymm10 = ymm10[0,3,2,3] vblendps ymm9, ymm10, ymm9, 24 # ymm9 = ymm10[0,1,2],ymm9[3,4],ymm10[5,6,7] vpermilps ymm10, ymm0, 0 # ymm10 = ymm0[0,0,0,0,4,4,4,4] vpermilps ymm11, ymm1, 224 # ymm11 = ymm1[0,0,2,3,4,4,6,7] vblendps ymm10, ymm11, ymm10, 136 # ymm10 = ymm11[0,1,2],ymm10[3],ymm11[4,5,6],ymm10[7] vpermpd ymm10, ymm10, 196 # ymm10 = ymm10[0,1,0,3] vblendps ymm9, ymm9, ymm10, 224 # ymm9 = ymm9[0,1,2,3,4],ymm10[5,6,7] vpermilps ymm10, ymm6, 255 # ymm10 = ymm6[3,3,3,3,7,7,7,7] vblendps ymm10, ymm10, ymm7, 34 # ymm10 = ymm10[0],ymm7[1],ymm10[2,3,4],ymm7[5],ymm10[6,7] vpermpd ymm10, ymm10, 200 # ymm10 = ymm10[0,2,0,3] vpermilps ymm11, ymm3, 255 # ymm11 = ymm3[3,3,3,3,7,7,7,7] vpermilps ymm12, ymm5, 244 # ymm12 = ymm5[0,1,3,3,4,5,7,7] vblendps ymm11, ymm12, ymm11, 17 # ymm11 = ymm11[0],ymm12[1,2,3],ymm11[4],ymm12[5,6,7] vpermpd ymm11, ymm11, 236 # ymm11 = ymm11[0,3,2,3] vblendps ymm10, ymm11, ymm10, 24 # ymm10 = ymm11[0,1,2],ymm10[3,4],ymm11[5,6,7] vpermilps ymm11, ymm0, 68 # ymm11 = ymm0[0,1,0,1,4,5,4,5] vpermilps ymm12, ymm1, 244 # ymm12 = ymm1[0,1,3,3,4,5,7,7] vblendps ymm11, ymm12, ymm11, 136 # ymm11 = ymm12[0,1,2],ymm11[3],ymm12[4,5,6],ymm11[7] vpermpd ymm11, ymm11, 196 # ymm11 = ymm11[0,1,0,3] vblendps ymm10, ymm10, ymm11, 224 # ymm10 = ymm10[0,1,2,3,4],ymm11[5,6,7] vblendps ymm6, ymm7, ymm6, 240 # ymm6 = ymm7[0,1,2,3],ymm6[4,5,6,7] vblendps ymm7, ymm6, ymm2, 204 # ymm7 = ymm6[0,1],ymm2[2,3],ymm6[4,5],ymm2[6,7] vpermilps ymm7, ymm7, 132 # ymm7 = ymm7[0,1,0,2,4,5,4,6] vmovaps xmm11, xmmword ptr [rip + .LCPI0_4] # xmm11 = <4,2,u,u> vblendps ymm3, ymm5, ymm3, 48 # ymm3 = ymm5[0,1,2,3],ymm3[4,5],ymm5[6,7] vpermps ymm5, ymm11, ymm3 vblendps ymm5, ymm7, ymm5, 3 # ymm5 = ymm5[0,1],ymm7[2,3,4,5,6,7] vblendps ymm0, ymm0, ymm1, 12 # ymm0 = ymm0[0,1],ymm1[2,3],ymm0[4,5,6,7] vbroadcastf128 ymm1, xmmword ptr [rip + .LCPI0_5] # ymm1 = [0,2,0,6,0,2,0,6] # ymm1 = mem[0,1,0,1] vpermps ymm1, ymm1, ymm0 vblendps ymm1, ymm5, ymm1, 224 # ymm1 = ymm5[0,1,2,3,4],ymm1[5,6,7] vpermilps ymm5, ymm6, 85 # ymm5 = ymm6[1,1,1,1,5,5,5,5] vblendps ymm2, ymm5, ymm2, 136 # ymm2 = ymm5[0,1,2],ymm2[3],ymm5[4,5,6],ymm2[7] vmovaps xmm5, xmmword ptr [rip + .LCPI0_6] # xmm5 = <5,3,u,u> vpermps ymm3, ymm5, ymm3 vblendps ymm2, ymm2, ymm3, 3 # ymm2 = ymm3[0,1],ymm2[2,3,4,5,6,7] vbroadcastf128 ymm3, xmmword ptr [rip + .LCPI0_7] # ymm3 = [0,3,1,7,0,3,1,7] # ymm3 = mem[0,1,0,1] vpermps ymm0, ymm3, ymm0 vblendps ymm0, ymm2, ymm0, 224 # ymm0 = ymm2[0,1,2,3,4],ymm0[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