CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
75 lines
1.8 KiB
LLVM
75 lines
1.8 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
|
|
; RUN: llc < %s | FileCheck %s
|
|
; RUN: llc -relocation-model=pic < %s | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
@bit_mask8 = external hidden global i8, !absolute_symbol !0
|
|
@bit_mask32 = external hidden global i8, !absolute_symbol !1
|
|
@bit_mask64 = external hidden global i8, !absolute_symbol !2
|
|
|
|
declare void @f()
|
|
|
|
define void @foo32(ptr %ptr) nounwind {
|
|
; CHECK-LABEL: foo32:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: movl $bit_mask32, %eax
|
|
; CHECK-NEXT: movl (%rdi), %ecx
|
|
; CHECK-NEXT: btl %ecx, %eax
|
|
; CHECK-NEXT: jae .LBB0_1
|
|
; CHECK-NEXT: # %bb.2: # %f
|
|
; CHECK-NEXT: retq
|
|
; CHECK-NEXT: .LBB0_1: # %t
|
|
; CHECK-NEXT: pushq %rax
|
|
; CHECK-NEXT: callq f@PLT
|
|
; CHECK-NEXT: popq %rax
|
|
; CHECK-NEXT: retq
|
|
%load = load i32, ptr %ptr
|
|
%and = and i32 %load, 31
|
|
%shl = shl i32 1, %and
|
|
%and2 = and i32 %shl, ptrtoint (ptr @bit_mask32 to i32)
|
|
%icmp = icmp eq i32 %and2, 0
|
|
br i1 %icmp, label %t, label %f
|
|
|
|
t:
|
|
call void @f()
|
|
ret void
|
|
|
|
f:
|
|
ret void
|
|
}
|
|
|
|
define void @foo64(ptr %ptr) nounwind {
|
|
; CHECK-LABEL: foo64:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: movabsq $bit_mask64, %rax
|
|
; CHECK-NEXT: movl (%rdi), %ecx
|
|
; CHECK-NEXT: btq %rcx, %rax
|
|
; CHECK-NEXT: jae .LBB1_1
|
|
; CHECK-NEXT: # %bb.2: # %f
|
|
; CHECK-NEXT: retq
|
|
; CHECK-NEXT: .LBB1_1: # %t
|
|
; CHECK-NEXT: pushq %rax
|
|
; CHECK-NEXT: callq f@PLT
|
|
; CHECK-NEXT: popq %rax
|
|
; CHECK-NEXT: retq
|
|
%load = load i64, ptr %ptr
|
|
%and = and i64 %load, 63
|
|
%shl = shl i64 1, %and
|
|
%and2 = and i64 %shl, ptrtoint (ptr @bit_mask64 to i64)
|
|
%icmp = icmp eq i64 %and2, 0
|
|
br i1 %icmp, label %t, label %f
|
|
|
|
t:
|
|
call void @f()
|
|
ret void
|
|
|
|
f:
|
|
ret void
|
|
}
|
|
|
|
!0 = !{i64 0, i64 256}
|
|
!1 = !{i64 0, i64 4294967296}
|
|
!2 = !{i64 -1, i64 -1}
|