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
55 lines
2.1 KiB
LLVM
55 lines
2.1 KiB
LLVM
; RUN: llc %s -o - -verify-machineinstrs | FileCheck %s
|
|
|
|
target datalayout = "e-m:o-p:32:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32"
|
|
target triple = "thumbv7-unknown-unknown"
|
|
|
|
%struct.ref_s = type { %union.v, i16, i16 }
|
|
%union.v = type { i32 }
|
|
%struct.gs_color_s = type { i16, i16, i16, i16, i8, i8 }
|
|
|
|
; In this case, the if converter was cloning the return instruction so that we had
|
|
; r2 = ...
|
|
; return [pred] r2<dead,def>
|
|
; ldr <r2, kill>
|
|
; return
|
|
; The problem here was that the dead def on the first return was making the machine verifier
|
|
; think that the load read from an undefined register. We need to remove the dead flag from
|
|
; the return, and also add an implicit use of the prior value of r2.
|
|
|
|
; CHECK: ldrh
|
|
|
|
; Function Attrs: minsize nounwind optsize ssp
|
|
define i32 @test(ptr %pref1, ptr %pref2, ptr %tmp152) #0 {
|
|
bb:
|
|
%nref = alloca %struct.ref_s, align 4
|
|
%tmp46 = call ptr @name_string_ref(ptr %pref1, ptr %nref) #2
|
|
%tmp153 = load ptr, ptr %tmp152, align 4
|
|
%tmp155 = load ptr, ptr %pref2, align 4
|
|
%tmp162 = getelementptr inbounds %struct.gs_color_s, ptr %tmp153, i32 0, i32 1
|
|
%tmp163 = load i16, ptr %tmp162, align 2
|
|
%tmp164 = getelementptr inbounds %struct.gs_color_s, ptr %tmp155, i32 0, i32 1
|
|
%tmp165 = load i16, ptr %tmp164, align 2
|
|
%tmp166 = icmp eq i16 %tmp163, %tmp165
|
|
br i1 %tmp166, label %bb167, label %bb173
|
|
|
|
bb167: ; preds = %bb
|
|
%tmp168 = getelementptr inbounds %struct.gs_color_s, ptr %tmp153, i32 0, i32 2
|
|
%tmp169 = load i16, ptr %tmp168, align 2
|
|
%tmp170 = getelementptr inbounds %struct.gs_color_s, ptr %tmp155, i32 0, i32 2
|
|
%tmp171 = load i16, ptr %tmp170, align 2
|
|
%tmp172 = icmp eq i16 %tmp169, %tmp171
|
|
br label %bb173
|
|
|
|
bb173: ; preds = %bb167, %bb
|
|
%tmp174 = phi i1 [ false, %bb ], [ %tmp172, %bb167 ]
|
|
%tmp175 = zext i1 %tmp174 to i32
|
|
ret i32 %tmp175
|
|
}
|
|
|
|
; Function Attrs: minsize optsize
|
|
declare ptr @name_string_ref(ptr, ptr) #1
|
|
|
|
attributes #0 = { minsize nounwind optsize }
|
|
attributes #1 = { minsize optsize }
|
|
attributes #2 = { minsize nounwind optsize }
|