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
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.6.1)
llvm-mca (assertions trunk)
llvm-mca (trunk)
Options
Source code
.text .file "test.ll" .section .rodata.cst16,"aM",@progbits,16 .p2align 4 # -- Begin function vec_4xi32_nonsplat_undef0_eq .LCPI0_0: .long 1065353216 # 0x3f800000 .long 1065353216 # 0x3f800000 .long 1065353216 # 0x3f800000 .long 1065353216 # 0x3f800000 .LCPI0_1: .long 1 # 0x1 .long 1 # 0x1 .long 1 # 0x1 .long 1 # 0x1 .text .globl vec_4xi32_nonsplat_undef0_eq .p2align 4, 0x90 .type vec_4xi32_nonsplat_undef0_eq,@function vec_4xi32_nonsplat_undef0_eq: # @vec_4xi32_nonsplat_undef0_eq # %bb.0: pslld $23, %xmm1 paddd .LCPI0_0(%rip), %xmm1 cvttps2dq %xmm1, %xmm1 movdqa .LCPI0_1(%rip), %xmm2 # xmm2 = [1,1,1,1] pshufd $245, %xmm1, %xmm3 # xmm3 = xmm1[1,1,3,3] pmuludq %xmm2, %xmm3 pmuludq %xmm1, %xmm2 pshufd $232, %xmm2, %xmm1 # xmm1 = xmm2[0,2,2,3] pshufd $232, %xmm3, %xmm2 # xmm2 = xmm3[0,2,2,3] punpckldq %xmm2, %xmm1 # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1] pand %xmm1, %xmm0 pxor %xmm1, %xmm1 pcmpeqd %xmm1, %xmm0 retq .Lfunc_end0: .size vec_4xi32_nonsplat_undef0_eq, .Lfunc_end0-vec_4xi32_nonsplat_undef0_eq # -- End function .section ".note.GNU-stack","",@progbits
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
.text .file "test.ll" .section .rodata.cst16,"aM",@progbits,16 .p2align 4 # -- Begin function vec_4xi32_nonsplat_undef0_eq .LCPI0_0: .long 1 # 0x1 .long 1 # 0x1 .zero 4 .long 1 # 0x1 .text .globl vec_4xi32_nonsplat_undef0_eq .p2align 4, 0x90 .type vec_4xi32_nonsplat_undef0_eq,@function vec_4xi32_nonsplat_undef0_eq: # @vec_4xi32_nonsplat_undef0_eq # %bb.0: pxor %xmm3, %xmm3 pshuflw $254, %xmm1, %xmm2 # xmm2 = xmm1[2,3,3,3,4,5,6,7] movdqa %xmm0, %xmm4 psrld %xmm2, %xmm4 pshuflw $84, %xmm1, %xmm5 # xmm5 = xmm1[0,1,1,1,4,5,6,7] movdqa %xmm0, %xmm2 psrld %xmm5, %xmm2 punpcklqdq %xmm4, %xmm2 # xmm2 = xmm2[0],xmm4[0] pshufd $78, %xmm1, %xmm1 # xmm1 = xmm1[2,3,0,1] pshuflw $254, %xmm1, %xmm4 # xmm4 = xmm1[2,3,3,3,4,5,6,7] movdqa %xmm0, %xmm5 psrld %xmm4, %xmm5 pshuflw $84, %xmm1, %xmm1 # xmm1 = xmm1[0,1,1,1,4,5,6,7] psrld %xmm1, %xmm0 punpckhqdq %xmm5, %xmm0 # xmm0 = xmm0[1],xmm5[1] shufps $204, %xmm0, %xmm2 # xmm2 = xmm2[0,3],xmm0[0,3] andps .LCPI0_0(%rip), %xmm2 pcmpeqd %xmm3, %xmm2 movdqa %xmm2, %xmm0 retq .Lfunc_end0: .size vec_4xi32_nonsplat_undef0_eq, .Lfunc_end0-vec_4xi32_nonsplat_undef0_eq # -- End function .section ".note.GNU-stack","",@progbits
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