Thanks for using Compiler Explorer
Sponsors
Jakt
C++
Ada
Algol68
Analysis
Android Java
Android Kotlin
Assembly
C
C3
Carbon
C with Coccinelle
C++ with Coccinelle
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
Mojo
Nim
Numba
Nix
Objective-C
Objective-C++
OCaml
Odin
OpenCL C
Pascal
Pony
PTX
Python
Racket
Raku
Ruby
Rust
Sail
Snowball
Scala
Slang
Solidity
Spice
SPIR-V
Swift
LLVM TableGen
Toit
TypeScript Native
V
Vala
Visual Basic
Vyper
WASM
Zig
Javascript
GIMPLE
Ygen
sway
analysis 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
OSACA (0.7.0)
llvm-mca (assertions trunk)
llvm-mca (trunk)
Options
Source code
default_term_loop: movq mm3, [rdi+rdx] # mm3 = sam_AB movq mm1, mm3 pslld mm1, 17 psrld mm1, 17 pmaddwd mm1, mm5 movq mm0, mm3 pslld mm0, 1 psrld mm0, 16 pmaddwd mm0, mm5 movq mm2, [rdi] # mm2 = left_right pslld mm0, 5 paddd mm1, mm7 # add 512 for rounding psrad mm1, 10 psubd mm2, mm0 psubd mm2, mm1 # add shifted sums movq mm0, mm3 movq [rdi+rbx], mm2 # store result pxor mm0, mm2 psrad mm0, 31 # mm0 = sign (sam_AB ^ left_right) sub rdi, rsi pxor mm1, mm1 # mm1 = zero pcmpeqd mm2, mm1 # mm2 = 1s if left_right was zero pcmpeqd mm3, mm1 # mm3 = 1s if sam_AB was zero por mm2, mm3 # mm2 = 1s if either was zero pandn mm2, mm6 # mask delta with zeros check pxor mm5, mm0 paddd mm5, mm2 # and add to weight_AB pxor mm5, mm0 paddd mm4, mm5 # add weights to sum dec ecx jnz default_term_loop
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