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
Clojure
CO2
Cargo
CMake
CMakeScript
COBOL
C++ for OpenCL
Makefile
Maven
MLIR
Cppx
Cppx-Blue
Cppx-Gold
Cpp2-cppfront
Crystal
C#
CUDA C++
CuTe DSL
D
Dart
Elixir
Erlang
Fortran
F#
GLSL
Go
Haskell
HLSL
Helion
Hook
Hylo
IL
ispc
Java
Julia
Kotlin
Lean
LLVM IR
LLVM MIR
Lua
Modula-2
Mojo
Nim
Numba
Nix
Objective-C
Objective-C++
OCaml
Odin
OpenCL C
Pascal
Perl
Pony
PTX
Python
Racket
Raku
RazorForge
Ruby
Rust
Sail
SFPI C++
Snowball
Scala
Slang
Solidity
Spice
SPIR-V
Swift
LLVM TableGen
Toit
Triton
TypeScript Native
V
Vala
Visual Basic
Vyper
WASM
Yul (Solidity IR)
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.1)
llvm-mca (assertions trunk)
llvm-mca (trunk)
Options
Source code
branchful: sub x0, x2, x3 cmp x0, #0x0 cset w0, ne cneg w0, w0, lt cmp w0, #0x0 b.le #+0xc mov w1, #0x1 b #+0x30 tbz w0, #31, #+0xc mov w1, #0xffffffff b #+0x24 sub x0, x4, x5 cmp x0, #0x0 cset w0, ne cneg w0, w0, lt cmp w0, #0x0 csetm w1, lt cmp w0, #0x0 csinc w1, w1, wzr, le mov x0, x1 ret
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.7.1)
llvm-mca (assertions trunk)
llvm-mca (trunk)
Options
Source code
branchless: sub x0, x2, x3 sub x1, x4, x5 cmp x0, #0x0 cset w0, ne cneg w0, w0, lt cmp x1, #0x0 cset w1, ne cneg w1, w1, lt add w0, w1, w0, lsl #1 ret
Become a Patron
Sponsor on GitHub
Donate via PayPal
Compiler Explorer Shop
Source on GitHub
Mailing list
Installed libraries
Wiki
Report an issue
How it works
Contact the author
CE on Mastodon
CE on Bluesky
Statistics
Changelog
Version tree