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 @vf16(<64 x i16>* %in.vec, <16 x i16>* %out.vec0, <16 x i16>* %out.vec1, <16 x i16>* %out.vec2, <16 x i16>* %out.vec3) nounwind { %wide.vec = load <64 x i16>, <64 x i16>* %in.vec, align 32 tail call void asm sideeffect "# LLVM-MCA-BEGIN", "~{dirflag},~{fpsr},~{flags}"() %strided.vec0 = shufflevector <64 x i16> %wide.vec, <64 x i16> poison, <16 x i32> <i32 0, i32 4, i32 8, i32 12, i32 16, i32 20, i32 24, i32 28, i32 32, i32 36, i32 40, i32 44, i32 48, i32 52, i32 56, i32 60> %strided.vec1 = shufflevector <64 x i16> %wide.vec, <64 x i16> poison, <16 x i32> <i32 1, i32 5, i32 9, i32 13, i32 17, i32 21, i32 25, i32 29, i32 33, i32 37, i32 41, i32 45, i32 49, i32 53, i32 57, i32 61> %strided.vec2 = shufflevector <64 x i16> %wide.vec, <64 x i16> poison, <16 x i32> <i32 2, i32 6, i32 10, i32 14, i32 18, i32 22, i32 26, i32 30, i32 34, i32 38, i32 42, i32 46, i32 50, i32 54, i32 58, i32 62> %strided.vec3 = shufflevector <64 x i16> %wide.vec, <64 x i16> poison, <16 x i32> <i32 3, i32 7, i32 11, i32 15, i32 19, i32 23, i32 27, i32 31, i32 35, i32 39, i32 43, i32 47, i32 51, i32 55, i32 59, i32 63> 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 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
vpxor xmm0, xmm0, xmm0 vpblendw xmm1, xmm13, xmm0, 238 # xmm1 = xmm13[0],xmm0[1,2,3],xmm13[4],xmm0[5,6,7] vpblendw xmm3, xmm12, xmm0, 238 # xmm3 = xmm12[0],xmm0[1,2,3],xmm12[4],xmm0[5,6,7] vpackusdw xmm1, xmm3, xmm1 vpblendw xmm3, xmm11, xmm0, 238 # xmm3 = xmm11[0],xmm0[1,2,3],xmm11[4],xmm0[5,6,7] vpblendw xmm4, xmm10, xmm0, 238 # xmm4 = xmm10[0],xmm0[1,2,3],xmm10[4],xmm0[5,6,7] vpackusdw xmm3, xmm4, xmm3 vpackusdw xmm1, xmm3, xmm1 vpblendw xmm3, xmm2, xmm0, 238 # xmm3 = xmm2[0],xmm0[1,2,3],xmm2[4],xmm0[5,6,7] vpblendw xmm4, xmm7, xmm0, 238 # xmm4 = xmm7[0],xmm0[1,2,3],xmm7[4],xmm0[5,6,7] vpackusdw xmm3, xmm4, xmm3 vpackusdw xmm3, xmm3, xmm3 vinserti128 ymm3, ymm0, xmm3, 1 vpblendw xmm4, xmm6, xmm0, 238 # xmm4 = xmm6[0],xmm0[1,2,3],xmm6[4],xmm0[5,6,7] vpblendw xmm0, xmm5, xmm0, 238 # xmm0 = xmm5[0],xmm0[1,2,3],xmm5[4],xmm0[5,6,7] vpackusdw xmm0, xmm0, xmm4 vpackusdw xmm0, xmm0, xmm0 vinserti128 ymm0, ymm0, xmm0, 1 vpblendd ymm0, ymm0, ymm3, 192 # ymm0 = ymm0[0,1,2,3,4,5],ymm3[6,7] vpblendd ymm0, ymm1, ymm0, 240 # ymm0 = ymm1[0,1,2,3],ymm0[4,5,6,7] vmovdqu ymmword ptr [rsp - 40], ymm0 # 32-byte Spill vpshufd xmm0, xmm2, 232 # xmm0 = xmm2[0,2,2,3] vpshuflw xmm0, xmm0, 212 # xmm0 = xmm0[0,1,1,3,4,5,6,7] vpshufd xmm1, xmm7, 232 # xmm1 = xmm7[0,2,2,3] vpshuflw xmm1, xmm1, 212 # xmm1 = xmm1[0,1,1,3,4,5,6,7] vpunpckldq xmm0, xmm1, xmm0 # xmm0 = xmm1[0],xmm0[0],xmm1[1],xmm0[1] vinserti128 ymm0, ymm0, xmm0, 1 vpshufd xmm1, xmm6, 232 # xmm1 = xmm6[0,2,2,3] vpshuflw xmm1, xmm1, 237 # xmm1 = xmm1[1,3,2,3,4,5,6,7] vpshufd xmm3, xmm5, 232 # xmm3 = xmm5[0,2,2,3] vpshuflw xmm3, xmm3, 237 # xmm3 = xmm3[1,3,2,3,4,5,6,7] vpunpckldq xmm1, xmm3, xmm1 # xmm1 = xmm3[0],xmm1[0],xmm3[1],xmm1[1] vinserti128 ymm1, ymm0, xmm1, 1 vpblendd ymm0, ymm1, ymm0, 192 # ymm0 = ymm1[0,1,2,3,4,5],ymm0[6,7] vpshufd xmm1, xmm13, 232 # xmm1 = xmm13[0,2,2,3] vpshuflw xmm1, xmm1, 212 # xmm1 = xmm1[0,1,1,3,4,5,6,7] vpshufd xmm3, xmm12, 232 # xmm3 = xmm12[0,2,2,3] vpshuflw xmm3, xmm3, 212 # xmm3 = xmm3[0,1,1,3,4,5,6,7] vpunpckldq xmm1, xmm3, xmm1 # xmm1 = xmm3[0],xmm1[0],xmm3[1],xmm1[1] vpshufd xmm3, xmm11, 232 # xmm3 = xmm11[0,2,2,3] vpshuflw xmm3, xmm3, 237 # xmm3 = xmm3[1,3,2,3,4,5,6,7] vpshufd xmm4, xmm10, 232 # xmm4 = xmm10[0,2,2,3] vpshuflw xmm4, xmm4, 237 # xmm4 = xmm4[1,3,2,3,4,5,6,7] vpunpckldq xmm3, xmm4, xmm3 # xmm3 = xmm4[0],xmm3[0],xmm4[1],xmm3[1] vpblendd xmm1, xmm3, xmm1, 12 # xmm1 = xmm3[0,1],xmm1[2,3] vpblendd ymm9, ymm1, ymm0, 240 # ymm9 = ymm1[0,1,2,3],ymm0[4,5,6,7] vpshufd xmm15, xmm2, 231 # xmm15 = xmm2[3,1,2,3] vpshuflw xmm1, xmm15, 36 # xmm1 = xmm15[0,1,2,0,4,5,6,7] vpshufd xmm8, xmm7, 231 # xmm8 = xmm7[3,1,2,3] vpshuflw xmm3, xmm8, 36 # xmm3 = xmm8[0,1,2,0,4,5,6,7] vpunpckldq xmm1, xmm3, xmm1 # xmm1 = xmm3[0],xmm1[0],xmm3[1],xmm1[1] vinserti128 ymm1, ymm0, xmm1, 1 vpshufd xmm3, xmm6, 231 # xmm3 = xmm6[3,1,2,3] vpshuflw xmm4, xmm3, 226 # xmm4 = xmm3[2,0,2,3,4,5,6,7] vpshufd xmm5, xmm5, 231 # xmm5 = xmm5[3,1,2,3] vpshuflw xmm6, xmm5, 226 # xmm6 = xmm5[2,0,2,3,4,5,6,7] vpunpckldq xmm4, xmm6, xmm4 # xmm4 = xmm6[0],xmm4[0],xmm6[1],xmm4[1] vinserti128 ymm4, ymm0, xmm4, 1 vpblendd ymm14, ymm4, ymm1, 192 # ymm14 = ymm4[0,1,2,3,4,5],ymm1[6,7] vpshufd xmm13, xmm13, 231 # xmm13 = xmm13[3,1,2,3] vpshuflw xmm6, xmm13, 36 # xmm6 = xmm13[0,1,2,0,4,5,6,7] vpshufd xmm7, xmm12, 231 # xmm7 = xmm12[3,1,2,3] vpshuflw xmm1, xmm7, 36 # xmm1 = xmm7[0,1,2,0,4,5,6,7] vpunpckldq xmm1, xmm1, xmm6 # xmm1 = xmm1[0],xmm6[0],xmm1[1],xmm6[1] vpshufd xmm6, xmm11, 231 # xmm6 = xmm11[3,1,2,3] vpshuflw xmm0, xmm6, 226 # xmm0 = xmm6[2,0,2,3,4,5,6,7] vpshufd xmm4, xmm10, 231 # xmm4 = xmm10[3,1,2,3] vpshuflw xmm2, xmm4, 226 # xmm2 = xmm4[2,0,2,3,4,5,6,7] vpunpckldq xmm0, xmm2, xmm0 # xmm0 = xmm2[0],xmm0[0],xmm2[1],xmm0[1] vpblendd xmm0, xmm0, xmm1, 12 # xmm0 = xmm0[0,1],xmm1[2,3] vpblendd ymm0, ymm0, ymm14, 240 # ymm0 = ymm0[0,1,2,3],ymm14[4,5,6,7] vpshuflw xmm1, xmm15, 116 # xmm1 = xmm15[0,1,3,1,4,5,6,7] vpshuflw xmm2, xmm8, 116 # xmm2 = xmm8[0,1,3,1,4,5,6,7] vpunpckldq xmm1, xmm2, xmm1 # xmm1 = xmm2[0],xmm1[0],xmm2[1],xmm1[1] vinserti128 ymm1, ymm0, xmm1, 1 vpshuflw xmm2, xmm3, 231 # xmm2 = xmm3[3,1,2,3,4,5,6,7] vpshuflw xmm3, xmm5, 231 # xmm3 = xmm5[3,1,2,3,4,5,6,7] vpunpckldq xmm2, xmm3, xmm2 # xmm2 = xmm3[0],xmm2[0],xmm3[1],xmm2[1] vinserti128 ymm2, ymm0, xmm2, 1 vpblendd ymm1, ymm2, ymm1, 192 # ymm1 = ymm2[0,1,2,3,4,5],ymm1[6,7] vpshuflw xmm2, xmm13, 116 # xmm2 = xmm13[0,1,3,1,4,5,6,7] vpshuflw xmm3, xmm7, 116 # xmm3 = xmm7[0,1,3,1,4,5,6,7] vpunpckldq xmm2, xmm3, xmm2 # xmm2 = xmm3[0],xmm2[0],xmm3[1],xmm2[1] vpshuflw xmm3, xmm6, 231 # xmm3 = xmm6[3,1,2,3,4,5,6,7] vpshuflw xmm4, xmm4, 231 # xmm4 = xmm4[3,1,2,3,4,5,6,7] vpunpckldq xmm3, xmm4, xmm3 # xmm3 = xmm4[0],xmm3[0],xmm4[1],xmm3[1] vpblendd xmm2, xmm3, xmm2, 12 # xmm2 = xmm3[0,1],xmm2[2,3] vpblendd ymm1, ymm2, ymm1, 240 # ymm1 = ymm2[0,1,2,3],ymm1[4,5,6,7] vmovups ymm2, ymmword ptr [rsp - 40] # 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
CE on Bluesky
About the author
Statistics
Changelog
Version tree