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
47 lines
1.9 KiB
LLVM
47 lines
1.9 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
|
|
; RUN: opt -passes="gvn-sink" -S %s | FileCheck %s
|
|
|
|
;; See https://github.com/llvm/llvm-project/issues/138345 for details.
|
|
;; The program below used to crash due to taking the address of the inline asm.
|
|
;; gvn-sink shouldn't do anything in this case, so test that the pass no longer
|
|
;; generates invalid IR and no longer crashes.
|
|
|
|
define void @c(i64 %num, ptr %ptr) {
|
|
; CHECK-LABEL: define void @c(
|
|
; CHECK-SAME: i64 [[NUM:%.*]], ptr [[PTR:%.*]]) {
|
|
; CHECK-NEXT: [[ENTRY:.*:]]
|
|
; CHECK-NEXT: switch i64 [[NUM]], label %[[SW_EPILOG:.*]] [
|
|
; CHECK-NEXT: i64 1, label %[[SW_BB:.*]]
|
|
; CHECK-NEXT: i64 0, label %[[SW_BB1:.*]]
|
|
; CHECK-NEXT: ]
|
|
; CHECK: [[SW_BB]]:
|
|
; CHECK-NEXT: [[TMP1:%.*]] = load i8, ptr [[PTR]], align 1
|
|
; CHECK-NEXT: call void asm sideeffect "", "r,r,~{dirflag},~{fpsr},~{flags}"(i8 [[TMP1]], ptr @c)
|
|
; CHECK-NEXT: br label %[[SW_EPILOG]]
|
|
; CHECK: [[SW_BB1]]:
|
|
; CHECK-NEXT: [[TMP2:%.*]] = load i8, ptr [[PTR]], align 1
|
|
; CHECK-NEXT: call void asm sideeffect "movdqu 0 [[XMM0:%.*]] \0A\09", "r,r,~{dirflag},~{fpsr},~{flags}"(i8 [[TMP2]], ptr @c)
|
|
; CHECK-NEXT: br label %[[SW_EPILOG]]
|
|
; CHECK: [[SW_EPILOG]]:
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
entry:
|
|
switch i64 %num, label %sw.epilog [
|
|
i64 1, label %sw.bb
|
|
i64 0, label %sw.bb1
|
|
]
|
|
|
|
sw.bb: ; preds = %entry
|
|
%1 = load i8, ptr %ptr, align 1
|
|
call void asm sideeffect "", "r,r,~{dirflag},~{fpsr},~{flags}"(i8 %1, ptr @c)
|
|
br label %sw.epilog
|
|
|
|
sw.bb1: ; preds = %entry
|
|
%2 = load i8, ptr %ptr, align 1
|
|
call void asm sideeffect "movdqu 0 %xmm0 \0A\09", "r,r,~{dirflag},~{fpsr},~{flags}"(i8 %2, ptr @c)
|
|
br label %sw.epilog
|
|
|
|
sw.epilog: ; preds = %sw.bb1, %sw.bb, %entry
|
|
ret void
|
|
}
|