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
Triton
TypeScript Native
V
Vala
Visual Basic
Vyper
WASM
Zig
Javascript
GIMPLE
Ygen
sway
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 20.1.0
clang 21.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
hexagon-clang 16.0.5
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 20.1.0
llc 21.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 20.1.0
opt 21.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
; "GOOD" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128" target triple = "x86_64--linux-gnu" %struct.halide_filter_argument_t = type { ptr, i32, i32, %struct.halide_type_t, ptr, ptr, ptr, ptr, ptr } %struct.halide_type_t = type { i8, i8, i16 } %struct.halide_filter_metadata_t = type { i32, i32, ptr, ptr, ptr } @0 = private constant [2 x ptr] zeroinitializer @str = private constant [7 x i8] c"in_f32\00", align 32 @1 = private constant [2 x ptr] zeroinitializer @str.4 = private constant [7 x i8] c"in_f64\00", align 32 @2 = private constant [2 x ptr] zeroinitializer @str.5 = private constant [7 x i8] c"in_f16\00", align 32 @3 = private constant [2 x ptr] zeroinitializer @str.6 = private constant [8 x i8] c"in_bf16\00", align 32 @4 = private constant [2 x ptr] zeroinitializer @str.7 = private constant [6 x i8] c"in_i8\00", align 32 @5 = private constant [2 x ptr] zeroinitializer @str.8 = private constant [6 x i8] c"in_u8\00", align 32 @6 = private constant [2 x ptr] zeroinitializer @str.9 = private constant [7 x i8] c"in_i16\00", align 32 @7 = private constant [2 x ptr] zeroinitializer @str.10 = private constant [7 x i8] c"in_u16\00", align 32 @8 = private constant [2 x ptr] zeroinitializer @str.11 = private constant [7 x i8] c"in_i32\00", align 32 @9 = private constant [2 x ptr] zeroinitializer @str.12 = private constant [7 x i8] c"in_u32\00", align 32 @10 = private constant [2 x ptr] zeroinitializer @str.13 = private constant [7 x i8] c"in_i64\00", align 32 @11 = private constant [2 x ptr] zeroinitializer @str.14 = private constant [7 x i8] c"in_u64\00", align 32 @str.15 = private constant [20 x i8] c"error_op_pblend_b_0\00", align 32 @12 = private constant [13 x %struct.halide_filter_argument_t] [%struct.halide_filter_argument_t { ptr @str, i32 1, i32 1, %struct.halide_type_t { i8 2, i8 32, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @0 }, %struct.halide_filter_argument_t { ptr @str.4, i32 1, i32 1, %struct.halide_type_t { i8 2, i8 64, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @1 }, %struct.halide_filter_argument_t { ptr @str.5, i32 1, i32 1, %struct.halide_type_t { i8 2, i8 16, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @2 }, %struct.halide_filter_argument_t { ptr @str.6, i32 1, i32 1, %struct.halide_type_t { i8 4, i8 16, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @3 }, %struct.halide_filter_argument_t { ptr @str.7, i32 1, i32 1, %struct.halide_type_t { i8 0, i8 8, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @4 }, %struct.halide_filter_argument_t { ptr @str.8, i32 1, i32 1, %struct.halide_type_t { i8 1, i8 8, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @5 }, %struct.halide_filter_argument_t { ptr @str.9, i32 1, i32 1, %struct.halide_type_t { i8 0, i8 16, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @6 }, %struct.halide_filter_argument_t { ptr @str.10, i32 1, i32 1, %struct.halide_type_t { i8 1, i8 16, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @7 }, %struct.halide_filter_argument_t { ptr @str.11, i32 1, i32 1, %struct.halide_type_t { i8 0, i8 32, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @8 }, %struct.halide_filter_argument_t { ptr @str.12, i32 1, i32 1, %struct.halide_type_t { i8 1, i8 32, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @9 }, %struct.halide_filter_argument_t { ptr @str.13, i32 1, i32 1, %struct.halide_type_t { i8 0, i8 64, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @10 }, %struct.halide_filter_argument_t { ptr @str.14, i32 1, i32 1, %struct.halide_type_t { i8 1, i8 64, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @11 }, %struct.halide_filter_argument_t { ptr @str.15, i32 2, i32 0, %struct.halide_type_t { i8 2, i8 64, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr null }] @str.16 = private constant [70 x i8] c"x86-64-linux-avx-f16c-fma-no_asserts-no_bounds_query-no_runtime-sse41\00", align 32 @str.17 = private constant [19 x i8] c"test_op_pblend_b_0\00", align 32 @test_op_pblend_b_0_metadata_storage = private constant %struct.halide_filter_metadata_t { i32 1, i32 13, ptr @12, ptr @str.16, ptr @str.17 } ; Function Attrs: mustprogress nounwind declare void @halide_free(ptr noundef, ptr noundef) local_unnamed_addr #0 ; Function Attrs: mustprogress nounwind declare noalias ptr @halide_malloc(ptr noundef, i64 noundef) local_unnamed_addr #0 ; Function Attrs: mustprogress nounwind define noundef i32 @test_op_pblend_b_0(ptr noalias nocapture readnone %in_f32.buffer, ptr noalias nocapture readnone %in_f64.buffer, ptr noalias nocapture readnone %in_f16.buffer, ptr noalias nocapture readnone %in_bf16.buffer, ptr noalias nocapture readnone %in_i8.buffer, ptr noalias nocapture readonly %in_u8.buffer, ptr noalias nocapture readnone %in_i16.buffer, ptr noalias nocapture readnone %in_u16.buffer, ptr noalias nocapture readnone %in_i32.buffer, ptr noalias nocapture readnone %in_u32.buffer, ptr noalias nocapture readnone %in_i64.buffer, ptr noalias nocapture readnone %in_u64.buffer, ptr noalias nocapture readonly %error_op_pblend_b_0.buffer) local_unnamed_addr #1 { entry: %host.i7 = getelementptr inbounds i8, ptr %error_op_pblend_b_0.buffer, i64 16 %0 = load ptr, ptr %host.i7, align 8, !tbaa !12 %host.i = getelementptr inbounds i8, ptr %in_u8.buffer, i64 16 %1 = load ptr, ptr %host.i, align 8, !tbaa !12 %dim.i = getelementptr inbounds i8, ptr %in_u8.buffer, i64 40 %2 = load ptr, ptr %dim.i, align 8, !tbaa !22 %3 = load i32, ptr %2, align 4, !tbaa !23 %op_pblend_b_0 = tail call ptr @halide_malloc(ptr null, i64 98304) %4 = sext i32 %3 to i64 br label %"1_for_op_pblend_b_0.s0.y" "1_for_op_pblend_b_0.s0.y": ; preds = %entry, %"2_end_for_op_pblend_b_0.s0.x.x" %indvars.iv14 = phi i64 [ 0, %entry ], [ %indvars.iv.next15, %"2_end_for_op_pblend_b_0.s0.x.x" ] %5 = mul nuw nsw i64 %indvars.iv14, 24 br label %"2_for_op_pblend_b_0.s0.x.x" "2_for_op_pblend_b_0.s0.x.x": ; preds = %"1_for_op_pblend_b_0.s0.y", %"2_for_op_pblend_b_0.s0.x.x" %indvars.iv = phi i64 [ 0, %"1_for_op_pblend_b_0.s0.y" ], [ %indvars.iv.next, %"2_for_op_pblend_b_0.s0.x.x" ] %6 = shl nuw nsw i64 %indvars.iv, 5 %7 = sub nsw i64 %6, %4 %8 = getelementptr inbounds i8, ptr %1, i64 %7 %t162 = load <32 x i8>, ptr %8, align 16, !tbaa !25 %9 = shufflevector <32 x i8> %t162, <32 x i8> poison, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15> %10 = icmp ugt <16 x i8> %9, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7> %11 = shufflevector <32 x i8> %t162, <32 x i8> poison, <16 x i32> <i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31> %12 = icmp ugt <16 x i8> %11, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7> %13 = getelementptr inbounds i8, ptr %8, i64 16 %14 = load <32 x i8>, ptr %13, align 16, !tbaa !25 %15 = shufflevector <32 x i8> %14, <32 x i8> poison, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15> %16 = select <16 x i1> %10, <16 x i8> %9, <16 x i8> %15 %17 = shufflevector <32 x i8> %14, <32 x i8> poison, <16 x i32> <i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31> %18 = select <16 x i1> %12, <16 x i8> %11, <16 x i8> %17 %19 = shufflevector <16 x i8> %16, <16 x i8> %18, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31> %20 = add nuw nsw i64 %indvars.iv, %5 %21 = shl nuw nsw i64 %20, 5 %22 = getelementptr inbounds i8, ptr %op_pblend_b_0, i64 %21 store <32 x i8> %19, ptr %22, align 32, !tbaa !28 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %.not = icmp eq i64 %indvars.iv.next, 24 br i1 %.not, label %"2_end_for_op_pblend_b_0.s0.x.x", label %"2_for_op_pblend_b_0.s0.x.x" "2_end_for_op_pblend_b_0.s0.x.x": ; preds = %"2_for_op_pblend_b_0.s0.x.x" %indvars.iv.next15 = add nuw nsw i64 %indvars.iv14, 1 %.not3 = icmp eq i64 %indvars.iv.next15, 128 br i1 %.not3, label %"3_for_maximum$4.s1.r810$y", label %"1_for_op_pblend_b_0.s0.y" "3_for_maximum$4.s1.r810$y": ; preds = %"2_end_for_op_pblend_b_0.s0.x.x", %"4_end_for_maximum$4.s1.r810$x" %indvars.iv21 = phi i64 [ %indvars.iv.next22, %"4_end_for_maximum$4.s1.r810$x" ], [ 0, %"2_end_for_op_pblend_b_0.s0.x.x" ] %"maximum$4.0" = phi i8 [ %33, %"4_end_for_maximum$4.s1.r810$x" ], [ 0, %"2_end_for_op_pblend_b_0.s0.x.x" ] %23 = mul nuw nsw i64 %indvars.iv21, 768 %invariant.gep = getelementptr inbounds i8, ptr %op_pblend_b_0, i64 %23 br label %"4_for_maximum$4.s1.r810$x" call_destructor.exit: ; preds = %"4_end_for_maximum$4.s1.r810$x" tail call void @halide_free(ptr noundef null, ptr noundef nonnull %op_pblend_b_0) #4 %24 = uitofp i8 %33 to double store double %24, ptr %0, align 8, !tbaa !30 ret i32 0 "4_for_maximum$4.s1.r810$x": ; preds = %"3_for_maximum$4.s1.r810$y", %"4_for_maximum$4.s1.r810$x" %indvars.iv18 = phi i64 [ 0, %"3_for_maximum$4.s1.r810$y" ], [ %indvars.iv.next19, %"4_for_maximum$4.s1.r810$x" ] %"maximum$4.1" = phi i8 [ %"maximum$4.0", %"3_for_maximum$4.s1.r810$y" ], [ %33, %"4_for_maximum$4.s1.r810$x" ] %25 = sub nsw i64 %indvars.iv18, %4 %26 = getelementptr inbounds i8, ptr %1, i64 %25 %t164 = load i8, ptr %26, align 1, !tbaa !25 %gep = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv18 %a1 = load i8, ptr %gep, align 1, !tbaa !28 %27 = icmp ugt i8 %t164, 7 %28 = getelementptr inbounds i8, ptr %26, i64 16 %29 = load i8, ptr %28, align 1, !tbaa !25 %b2 = select i1 %27, i8 %t164, i8 %29 %30 = icmp ugt i8 %b2, %a1 %31 = sub i8 %b2, %a1 %32 = sub i8 %a1, %b2 %a0 = select i1 %30, i8 %31, i8 %32 %33 = tail call i8 @llvm.umax.i8(i8 %a0, i8 %"maximum$4.1") %indvars.iv.next19 = add nuw nsw i64 %indvars.iv18, 1 %.not5 = icmp eq i64 %indvars.iv.next19, 768 br i1 %.not5, label %"4_end_for_maximum$4.s1.r810$x", label %"4_for_maximum$4.s1.r810$x" "4_end_for_maximum$4.s1.r810$x": ; preds = %"4_for_maximum$4.s1.r810$x" %indvars.iv.next22 = add nuw nsw i64 %indvars.iv21, 1 %.not6 = icmp eq i64 %indvars.iv.next22, 128 br i1 %.not6, label %call_destructor.exit, label %"3_for_maximum$4.s1.r810$y" } ; Function Attrs: mustprogress nounwind define noundef i32 @test_op_pblend_b_0_argv(ptr nocapture readonly %0) local_unnamed_addr #1 { entry: %1 = getelementptr i8, ptr %0, i64 40 %2 = load ptr, ptr %1, align 8 %3 = getelementptr i8, ptr %0, i64 96 %4 = load ptr, ptr %3, align 8 %5 = tail call i32 @test_op_pblend_b_0(ptr poison, ptr poison, ptr poison, ptr poison, ptr poison, ptr %2, ptr poison, ptr poison, ptr poison, ptr poison, ptr poison, ptr poison, ptr %4) #5 ret i32 0 } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) define noundef nonnull ptr @test_op_pblend_b_0_metadata() local_unnamed_addr #2 { entry: ret ptr @test_op_pblend_b_0_metadata_storage } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i8 @llvm.umax.i8(i8, i8) #3 attributes #0 = { mustprogress nounwind "frame-pointer"="all" "no-builtins" "no-trapping-math"="true" "reciprocal-estimates"="none" "stack-protector-buffer-size"="8" "target-cpu"="corei7-avx" "target-features"="+fma,+f16c,+prefer-no-gather" "tune-cpu"="corei7-avx" } attributes #1 = { mustprogress nounwind "reciprocal-estimates"="none" "target-cpu"="corei7-avx" "target-features"="+fma,+f16c,+prefer-no-gather" "tune-cpu"="corei7-avx" } attributes #2 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) "reciprocal-estimates"="none" "target-cpu"="corei7-avx" "target-features"="+fma,+f16c,+prefer-no-gather" "tune-cpu"="corei7-avx" } attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #4 = { nobuiltin nounwind "no-builtins" } attributes #5 = { noinline } !llvm.module.flags = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9, !10} !llvm.ident = !{!11, !11, !11, !11, !11, !11} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 1} !2 = !{i32 7, !"frame-pointer", i32 2} !3 = !{i32 2, !"halide_use_soft_float_abi", i32 0} !4 = !{i32 2, !"halide_mcpu_target", !"corei7-avx"} !5 = !{i32 2, !"halide_mcpu_tune", !"corei7-avx"} !6 = !{i32 2, !"halide_mattrs", !"+fma,+f16c,+prefer-no-gather"} !7 = !{i32 2, !"halide_mabi", !""} !8 = !{i32 2, !"halide_use_pic", i32 1} !9 = !{i32 2, !"halide_use_large_code_model", i32 0} !10 = !{i32 2, !"halide_per_instruction_fast_math_flags", i32 0} !11 = !{!"clang version 19.0.0git (https://github.com/llvm/llvm-project 17ecd23f6932c87fcc8b2b8675762d50f3d53056)"} !12 = !{!13, !17, i64 16} !13 = !{!"_ZTS15halide_buffer_t", !14, i64 0, !17, i64 8, !17, i64 16, !14, i64 24, !18, i64 32, !21, i64 36, !17, i64 40, !17, i64 48} !14 = !{!"long long", !15, i64 0} !15 = !{!"omnipotent char", !16, i64 0} !16 = !{!"Simple C++ TBAA"} !17 = !{!"any pointer", !15, i64 0} !18 = !{!"_ZTS13halide_type_t", !19, i64 0, !15, i64 1, !20, i64 2} !19 = !{!"_ZTS18halide_type_code_t", !15, i64 0} !20 = !{!"short", !15, i64 0} !21 = !{!"int", !15, i64 0} !22 = !{!13, !17, i64 40} !23 = !{!24, !21, i64 0} !24 = !{!"_ZTS18halide_dimension_t", !21, i64 0, !21, i64 4, !21, i64 8, !21, i64 12} !25 = !{!26, !26, i64 0} !26 = !{!"in_u8", !27, i64 0} !27 = !{!"Halide buffer"} !28 = !{!29, !29, i64 0} !29 = !{!"op_pblend_b_0", !27, i64 0} !30 = !{!31, !31, i64 0} !31 = !{!"error_op_pblend_b_0.width1.base0", !32, i64 0} !32 = !{!"error_op_pblend_b_0.width2.base0", !33, i64 0} !33 = !{!"error_op_pblend_b_0.width4.base0", !34, i64 0} !34 = !{!"error_op_pblend_b_0.width8.base0", !35, i64 0} !35 = !{!"error_op_pblend_b_0.width16.base0", !36, i64 0} !36 = !{!"error_op_pblend_b_0.width32.base0", !37, i64 0} !37 = !{!"error_op_pblend_b_0.width64.base0", !38, i64 0} !38 = !{!"error_op_pblend_b_0.width128.base0", !39, i64 0} !39 = !{!"error_op_pblend_b_0.width256.base0", !40, i64 0} !40 = !{!"error_op_pblend_b_0.width512.base0", !41, i64 0} !41 = !{!"error_op_pblend_b_0.width1024.base0", !42, i64 0} !42 = !{!"error_op_pblend_b_0", !27, i64 0}
llvm 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
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 20.1.0
clang 21.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
hexagon-clang 16.0.5
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 20.1.0
llc 21.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 20.1.0
opt 21.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
; "BAD" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128" target triple = "x86_64--linux-gnu" %struct.halide_filter_argument_t = type { ptr, i32, i32, %struct.halide_type_t, ptr, ptr, ptr, ptr, ptr } %struct.halide_type_t = type { i8, i8, i16 } %struct.halide_filter_metadata_t = type { i32, i32, ptr, ptr, ptr } @0 = private constant [2 x ptr] zeroinitializer @str = private constant [7 x i8] c"in_f32\00", align 32 @1 = private constant [2 x ptr] zeroinitializer @str.4 = private constant [7 x i8] c"in_f64\00", align 32 @2 = private constant [2 x ptr] zeroinitializer @str.5 = private constant [7 x i8] c"in_f16\00", align 32 @3 = private constant [2 x ptr] zeroinitializer @str.6 = private constant [8 x i8] c"in_bf16\00", align 32 @4 = private constant [2 x ptr] zeroinitializer @str.7 = private constant [6 x i8] c"in_i8\00", align 32 @5 = private constant [2 x ptr] zeroinitializer @str.8 = private constant [6 x i8] c"in_u8\00", align 32 @6 = private constant [2 x ptr] zeroinitializer @str.9 = private constant [7 x i8] c"in_i16\00", align 32 @7 = private constant [2 x ptr] zeroinitializer @str.10 = private constant [7 x i8] c"in_u16\00", align 32 @8 = private constant [2 x ptr] zeroinitializer @str.11 = private constant [7 x i8] c"in_i32\00", align 32 @9 = private constant [2 x ptr] zeroinitializer @str.12 = private constant [7 x i8] c"in_u32\00", align 32 @10 = private constant [2 x ptr] zeroinitializer @str.13 = private constant [7 x i8] c"in_i64\00", align 32 @11 = private constant [2 x ptr] zeroinitializer @str.14 = private constant [7 x i8] c"in_u64\00", align 32 @str.15 = private constant [20 x i8] c"error_op_pblend_b_0\00", align 32 @12 = private constant [13 x %struct.halide_filter_argument_t] [%struct.halide_filter_argument_t { ptr @str, i32 1, i32 1, %struct.halide_type_t { i8 2, i8 32, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @0 }, %struct.halide_filter_argument_t { ptr @str.4, i32 1, i32 1, %struct.halide_type_t { i8 2, i8 64, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @1 }, %struct.halide_filter_argument_t { ptr @str.5, i32 1, i32 1, %struct.halide_type_t { i8 2, i8 16, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @2 }, %struct.halide_filter_argument_t { ptr @str.6, i32 1, i32 1, %struct.halide_type_t { i8 4, i8 16, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @3 }, %struct.halide_filter_argument_t { ptr @str.7, i32 1, i32 1, %struct.halide_type_t { i8 0, i8 8, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @4 }, %struct.halide_filter_argument_t { ptr @str.8, i32 1, i32 1, %struct.halide_type_t { i8 1, i8 8, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @5 }, %struct.halide_filter_argument_t { ptr @str.9, i32 1, i32 1, %struct.halide_type_t { i8 0, i8 16, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @6 }, %struct.halide_filter_argument_t { ptr @str.10, i32 1, i32 1, %struct.halide_type_t { i8 1, i8 16, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @7 }, %struct.halide_filter_argument_t { ptr @str.11, i32 1, i32 1, %struct.halide_type_t { i8 0, i8 32, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @8 }, %struct.halide_filter_argument_t { ptr @str.12, i32 1, i32 1, %struct.halide_type_t { i8 1, i8 32, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @9 }, %struct.halide_filter_argument_t { ptr @str.13, i32 1, i32 1, %struct.halide_type_t { i8 0, i8 64, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @10 }, %struct.halide_filter_argument_t { ptr @str.14, i32 1, i32 1, %struct.halide_type_t { i8 1, i8 64, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr @11 }, %struct.halide_filter_argument_t { ptr @str.15, i32 2, i32 0, %struct.halide_type_t { i8 2, i8 64, i16 1 }, ptr null, ptr null, ptr null, ptr null, ptr null }] @str.16 = private constant [70 x i8] c"x86-64-linux-avx-f16c-fma-no_asserts-no_bounds_query-no_runtime-sse41\00", align 32 @str.17 = private constant [19 x i8] c"test_op_pblend_b_0\00", align 32 @test_op_pblend_b_0_metadata_storage = private constant %struct.halide_filter_metadata_t { i32 1, i32 13, ptr @12, ptr @str.16, ptr @str.17 } ; Function Attrs: mustprogress nounwind declare void @halide_free(ptr noundef, ptr noundef) local_unnamed_addr #0 ; Function Attrs: mustprogress nounwind declare noalias ptr @halide_malloc(ptr noundef, i64 noundef) local_unnamed_addr #0 ; Function Attrs: mustprogress nounwind define noundef i32 @test_op_pblend_b_0(ptr noalias nocapture readnone %in_f32.buffer, ptr noalias nocapture readnone %in_f64.buffer, ptr noalias nocapture readnone %in_f16.buffer, ptr noalias nocapture readnone %in_bf16.buffer, ptr noalias nocapture readnone %in_i8.buffer, ptr noalias nocapture readonly %in_u8.buffer, ptr noalias nocapture readnone %in_i16.buffer, ptr noalias nocapture readnone %in_u16.buffer, ptr noalias nocapture readnone %in_i32.buffer, ptr noalias nocapture readnone %in_u32.buffer, ptr noalias nocapture readnone %in_i64.buffer, ptr noalias nocapture readnone %in_u64.buffer, ptr noalias nocapture readonly %error_op_pblend_b_0.buffer) local_unnamed_addr #1 { entry: %host.i7 = getelementptr inbounds i8, ptr %error_op_pblend_b_0.buffer, i64 16 %0 = load ptr, ptr %host.i7, align 8, !tbaa !12 %host.i = getelementptr inbounds i8, ptr %in_u8.buffer, i64 16 %1 = load ptr, ptr %host.i, align 8, !tbaa !12 %dim.i = getelementptr inbounds i8, ptr %in_u8.buffer, i64 40 %2 = load ptr, ptr %dim.i, align 8, !tbaa !22 %3 = load i32, ptr %2, align 4, !tbaa !23 %op_pblend_b_0 = tail call ptr @halide_malloc(ptr null, i64 98304) %4 = sext i32 %3 to i64 br label %"1_for_op_pblend_b_0.s0.y" "1_for_op_pblend_b_0.s0.y": ; preds = %entry, %"2_end_for_op_pblend_b_0.s0.x.x" %indvars.iv14 = phi i64 [ 0, %entry ], [ %indvars.iv.next15, %"2_end_for_op_pblend_b_0.s0.x.x" ] %5 = mul nuw nsw i64 %indvars.iv14, 24 br label %"2_for_op_pblend_b_0.s0.x.x" "2_for_op_pblend_b_0.s0.x.x": ; preds = %"1_for_op_pblend_b_0.s0.y", %"2_for_op_pblend_b_0.s0.x.x" %indvars.iv = phi i64 [ 0, %"1_for_op_pblend_b_0.s0.y" ], [ %indvars.iv.next, %"2_for_op_pblend_b_0.s0.x.x" ] %6 = shl nuw nsw i64 %indvars.iv, 5 %7 = sub nsw i64 %6, %4 %8 = getelementptr inbounds i8, ptr %1, i64 %7 %t162 = load <32 x i8>, ptr %8, align 16, !tbaa !25 %9 = icmp ugt <32 x i8> %t162, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7> %10 = getelementptr inbounds i8, ptr %8, i64 16 %11 = load <32 x i8>, ptr %10, align 16, !tbaa !25 %12 = select <32 x i1> %9, <32 x i8> %t162, <32 x i8> %11 %13 = add nuw nsw i64 %indvars.iv, %5 %14 = shl nuw nsw i64 %13, 5 %15 = getelementptr inbounds i8, ptr %op_pblend_b_0, i64 %14 store <32 x i8> %12, ptr %15, align 32, !tbaa !28 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %.not = icmp eq i64 %indvars.iv.next, 24 br i1 %.not, label %"2_end_for_op_pblend_b_0.s0.x.x", label %"2_for_op_pblend_b_0.s0.x.x" "2_end_for_op_pblend_b_0.s0.x.x": ; preds = %"2_for_op_pblend_b_0.s0.x.x" %indvars.iv.next15 = add nuw nsw i64 %indvars.iv14, 1 %.not3 = icmp eq i64 %indvars.iv.next15, 128 br i1 %.not3, label %"3_for_maximum$4.s1.r810$y", label %"1_for_op_pblend_b_0.s0.y" "3_for_maximum$4.s1.r810$y": ; preds = %"2_end_for_op_pblend_b_0.s0.x.x", %"4_end_for_maximum$4.s1.r810$x" %indvars.iv21 = phi i64 [ %indvars.iv.next22, %"4_end_for_maximum$4.s1.r810$x" ], [ 0, %"2_end_for_op_pblend_b_0.s0.x.x" ] %"maximum$4.0" = phi i8 [ %26, %"4_end_for_maximum$4.s1.r810$x" ], [ 0, %"2_end_for_op_pblend_b_0.s0.x.x" ] %16 = mul nuw nsw i64 %indvars.iv21, 768 %invariant.gep = getelementptr inbounds i8, ptr %op_pblend_b_0, i64 %16 br label %"4_for_maximum$4.s1.r810$x" call_destructor.exit: ; preds = %"4_end_for_maximum$4.s1.r810$x" tail call void @halide_free(ptr noundef null, ptr noundef nonnull %op_pblend_b_0) #4 %17 = uitofp i8 %26 to double store double %17, ptr %0, align 8, !tbaa !30 ret i32 0 "4_for_maximum$4.s1.r810$x": ; preds = %"3_for_maximum$4.s1.r810$y", %"4_for_maximum$4.s1.r810$x" %indvars.iv18 = phi i64 [ 0, %"3_for_maximum$4.s1.r810$y" ], [ %indvars.iv.next19, %"4_for_maximum$4.s1.r810$x" ] %"maximum$4.1" = phi i8 [ %"maximum$4.0", %"3_for_maximum$4.s1.r810$y" ], [ %26, %"4_for_maximum$4.s1.r810$x" ] %18 = sub nsw i64 %indvars.iv18, %4 %19 = getelementptr inbounds i8, ptr %1, i64 %18 %t164 = load i8, ptr %19, align 1, !tbaa !25 %gep = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv18 %a1 = load i8, ptr %gep, align 1, !tbaa !28 %20 = icmp ugt i8 %t164, 7 %21 = getelementptr inbounds i8, ptr %19, i64 16 %22 = load i8, ptr %21, align 1, !tbaa !25 %b2 = select i1 %20, i8 %t164, i8 %22 %23 = icmp ugt i8 %b2, %a1 %24 = sub i8 %b2, %a1 %25 = sub i8 %a1, %b2 %a0 = select i1 %23, i8 %24, i8 %25 %26 = tail call i8 @llvm.umax.i8(i8 %a0, i8 %"maximum$4.1") %indvars.iv.next19 = add nuw nsw i64 %indvars.iv18, 1 %.not5 = icmp eq i64 %indvars.iv.next19, 768 br i1 %.not5, label %"4_end_for_maximum$4.s1.r810$x", label %"4_for_maximum$4.s1.r810$x" "4_end_for_maximum$4.s1.r810$x": ; preds = %"4_for_maximum$4.s1.r810$x" %indvars.iv.next22 = add nuw nsw i64 %indvars.iv21, 1 %.not6 = icmp eq i64 %indvars.iv.next22, 128 br i1 %.not6, label %call_destructor.exit, label %"3_for_maximum$4.s1.r810$y" } ; Function Attrs: mustprogress nounwind define noundef i32 @test_op_pblend_b_0_argv(ptr nocapture readonly %0) local_unnamed_addr #1 { entry: %1 = getelementptr i8, ptr %0, i64 40 %2 = load ptr, ptr %1, align 8 %3 = getelementptr i8, ptr %0, i64 96 %4 = load ptr, ptr %3, align 8 %5 = tail call i32 @test_op_pblend_b_0(ptr poison, ptr poison, ptr poison, ptr poison, ptr poison, ptr %2, ptr poison, ptr poison, ptr poison, ptr poison, ptr poison, ptr poison, ptr %4) #5 ret i32 0 } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) define noundef nonnull ptr @test_op_pblend_b_0_metadata() local_unnamed_addr #2 { entry: ret ptr @test_op_pblend_b_0_metadata_storage } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i8 @llvm.umax.i8(i8, i8) #3 attributes #0 = { mustprogress nounwind "frame-pointer"="all" "no-builtins" "no-trapping-math"="true" "reciprocal-estimates"="none" "stack-protector-buffer-size"="8" "target-cpu"="corei7-avx" "target-features"="+fma,+f16c,+prefer-no-gather" "tune-cpu"="corei7-avx" } attributes #1 = { mustprogress nounwind "reciprocal-estimates"="none" "target-cpu"="corei7-avx" "target-features"="+fma,+f16c,+prefer-no-gather" "tune-cpu"="corei7-avx" } attributes #2 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) "reciprocal-estimates"="none" "target-cpu"="corei7-avx" "target-features"="+fma,+f16c,+prefer-no-gather" "tune-cpu"="corei7-avx" } attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #4 = { nobuiltin nounwind "no-builtins" } attributes #5 = { noinline } !llvm.module.flags = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9, !10} !llvm.ident = !{!11, !11, !11, !11, !11, !11} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 1} !2 = !{i32 7, !"frame-pointer", i32 2} !3 = !{i32 2, !"halide_use_soft_float_abi", i32 0} !4 = !{i32 2, !"halide_mcpu_target", !"corei7-avx"} !5 = !{i32 2, !"halide_mcpu_tune", !"corei7-avx"} !6 = !{i32 2, !"halide_mattrs", !"+fma,+f16c,+prefer-no-gather"} !7 = !{i32 2, !"halide_mabi", !""} !8 = !{i32 2, !"halide_use_pic", i32 1} !9 = !{i32 2, !"halide_use_large_code_model", i32 0} !10 = !{i32 2, !"halide_per_instruction_fast_math_flags", i32 0} !11 = !{!"clang version 19.0.0git (https://github.com/llvm/llvm-project 516a9f5183446d695c701fcdc562d543c9ccb297)"} !12 = !{!13, !17, i64 16} !13 = !{!"_ZTS15halide_buffer_t", !14, i64 0, !17, i64 8, !17, i64 16, !14, i64 24, !18, i64 32, !21, i64 36, !17, i64 40, !17, i64 48} !14 = !{!"long long", !15, i64 0} !15 = !{!"omnipotent char", !16, i64 0} !16 = !{!"Simple C++ TBAA"} !17 = !{!"any pointer", !15, i64 0} !18 = !{!"_ZTS13halide_type_t", !19, i64 0, !15, i64 1, !20, i64 2} !19 = !{!"_ZTS18halide_type_code_t", !15, i64 0} !20 = !{!"short", !15, i64 0} !21 = !{!"int", !15, i64 0} !22 = !{!13, !17, i64 40} !23 = !{!24, !21, i64 0} !24 = !{!"_ZTS18halide_dimension_t", !21, i64 0, !21, i64 4, !21, i64 8, !21, i64 12} !25 = !{!26, !26, i64 0} !26 = !{!"in_u8", !27, i64 0} !27 = !{!"Halide buffer"} !28 = !{!29, !29, i64 0} !29 = !{!"op_pblend_b_0", !27, i64 0} !30 = !{!31, !31, i64 0} !31 = !{!"error_op_pblend_b_0.width1.base0", !32, i64 0} !32 = !{!"error_op_pblend_b_0.width2.base0", !33, i64 0} !33 = !{!"error_op_pblend_b_0.width4.base0", !34, i64 0} !34 = !{!"error_op_pblend_b_0.width8.base0", !35, i64 0} !35 = !{!"error_op_pblend_b_0.width16.base0", !36, i64 0} !36 = !{!"error_op_pblend_b_0.width32.base0", !37, i64 0} !37 = !{!"error_op_pblend_b_0.width64.base0", !38, i64 0} !38 = !{!"error_op_pblend_b_0.width128.base0", !39, i64 0} !39 = !{!"error_op_pblend_b_0.width256.base0", !40, i64 0} !40 = !{!"error_op_pblend_b_0.width512.base0", !41, i64 0} !41 = !{!"error_op_pblend_b_0.width1024.base0", !42, i64 0} !42 = !{!"error_op_pblend_b_0", !27, i64 0}
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