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
41 lines
1.3 KiB
LLVM
41 lines
1.3 KiB
LLVM
; RUN: opt -passes=constmerge -S < %s | FileCheck %s
|
|
; Test which corresponding x and y are merged and that unnamed_addr
|
|
; is correctly set.
|
|
|
|
declare void @zed(ptr, ptr)
|
|
|
|
%struct.foobar = type { i32 }
|
|
|
|
@test1.x = internal constant %struct.foobar { i32 1 }
|
|
@test1.y = constant %struct.foobar { i32 1 }
|
|
|
|
@test2.x = internal constant %struct.foobar { i32 2 }
|
|
@test2.y = unnamed_addr constant %struct.foobar { i32 2 }
|
|
|
|
@test3.x = internal unnamed_addr constant %struct.foobar { i32 3 }
|
|
@test3.y = constant %struct.foobar { i32 3 }
|
|
|
|
@test4.x = internal unnamed_addr constant %struct.foobar { i32 4 }
|
|
@test4.y = unnamed_addr constant %struct.foobar { i32 4 }
|
|
|
|
|
|
; CHECK: %struct.foobar = type { i32 }
|
|
; CHECK-NOT: @
|
|
; CHECK: @test1.x = internal constant %struct.foobar { i32 1 }
|
|
; CHECK-NEXT: @test1.y = constant %struct.foobar { i32 1 }
|
|
; CHECK-NEXT: @test2.y = constant %struct.foobar { i32 2 }
|
|
; CHECK-NEXT: @test3.y = constant %struct.foobar { i32 3 }
|
|
; CHECK-NEXT: @test4.y = unnamed_addr constant %struct.foobar { i32 4 }
|
|
; CHECK-NOT: @
|
|
; CHECK: declare void @zed(ptr, ptr)
|
|
|
|
define i32 @main() {
|
|
entry:
|
|
call void @zed(ptr @test1.x, ptr @test1.y)
|
|
call void @zed(ptr @test2.x, ptr @test2.y)
|
|
call void @zed(ptr @test3.x, ptr @test3.y)
|
|
call void @zed(ptr @test4.x, ptr @test4.y)
|
|
ret i32 0
|
|
}
|
|
|