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
62 lines
1.8 KiB
LLVM
62 lines
1.8 KiB
LLVM
; RUN: llc --filetype=obj %s -o - | dxil-dis -o - | FileCheck %s
|
|
target triple = "dxil-unknown-shadermodel6.7-library"
|
|
|
|
define i64 @test(ptr %p) #0 {
|
|
store i32 0, ptr %p
|
|
%v = load i64, ptr %p
|
|
ret i64 %v
|
|
}
|
|
|
|
; CHECK: define i64 @test(i8* %p) {
|
|
; CHECK-NEXT: %1 = bitcast i8* %p to i32*
|
|
; CHECK-NEXT: store i32 0, i32* %1, align 4
|
|
; CHECK-NEXT: %2 = bitcast i8* %p to i64*
|
|
; CHECK-NEXT: %3 = load i64, i64* %2, align 8
|
|
|
|
define i64 @test2(ptr %p) #0 {
|
|
store i64 0, ptr %p
|
|
%v = load i64, ptr %p
|
|
ret i64 %v
|
|
}
|
|
|
|
; CHECK: define i64 @test2(i64* %p) {
|
|
; CHECK-NEXT: store i64 0, i64* %p, align 8
|
|
; CHECK-NEXT: %v = load i64, i64* %p, align 8
|
|
|
|
define i64 @test3(ptr addrspace(1) %p) #0 {
|
|
store i32 0, ptr addrspace(1) %p
|
|
%v = load i64, ptr addrspace(1) %p
|
|
ret i64 %v
|
|
}
|
|
|
|
; CHECK: define i64 @test3(i8 addrspace(1)* %p) {
|
|
; CHECK-NEXT: %1 = bitcast i8 addrspace(1)* %p to i32 addrspace(1)*
|
|
; CHECK-NEXT: store i32 0, i32 addrspace(1)* %1, align 4
|
|
; CHECK-NEXT: %2 = bitcast i8 addrspace(1)* %p to i64 addrspace(1)*
|
|
; CHECK-NEXT: %3 = load i64, i64 addrspace(1)* %2, align 8
|
|
|
|
define i64 @test4(ptr addrspace(1) %p) #0 {
|
|
store i64 0, ptr addrspace(1) %p
|
|
%v = load i64, ptr addrspace(1) %p
|
|
ret i64 %v
|
|
}
|
|
|
|
; CHECK: define i64 @test4(i64 addrspace(1)* %p) {
|
|
; CHECK-NEXT: store i64 0, i64 addrspace(1)* %p, align 8
|
|
; CHECK-NEXT: %v = load i64, i64 addrspace(1)* %p, align 8
|
|
|
|
|
|
define i64 @test5(ptr %p) #0 {
|
|
%casted = addrspacecast ptr %p to ptr addrspace(1)
|
|
store i64 0, ptr addrspace(1) %casted
|
|
%v = load i64, ptr addrspace(1) %casted
|
|
ret i64 %v
|
|
}
|
|
|
|
; CHECK: define i64 @test5(i8* %p) {
|
|
; CHECK-NEXT: %casted = addrspacecast i8* %p to i64 addrspace(1)*
|
|
; CHECK-NEXT: store i64 0, i64 addrspace(1)* %casted, align 8
|
|
; CHECK-NEXT: %v = load i64, i64 addrspace(1)* %casted, align 8
|
|
|
|
attributes #0 = { "hlsl.export" }
|