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
80 lines
2.4 KiB
LLVM
80 lines
2.4 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
|
|
; RUN: llc -mtriple=amdgcn -mcpu=gfx1100 -mattr=-real-true16 < %s | FileCheck -enable-var-scope -check-prefixes=GFX11 %s
|
|
|
|
define amdgpu_kernel void @s_input_output_i16() #0 {
|
|
; GFX11-LABEL: s_input_output_i16:
|
|
; GFX11: ; %bb.0:
|
|
; GFX11-NEXT: ;;#ASMSTART
|
|
; GFX11-NEXT: s_mov_b32 s0, -1
|
|
; GFX11-NEXT: ;;#ASMEND
|
|
; GFX11-NEXT: s_and_b32 s0, s0, 0xffff
|
|
; GFX11-NEXT: ;;#ASMSTART
|
|
; GFX11-NEXT: ; use s0
|
|
; GFX11-NEXT: ;;#ASMEND
|
|
; GFX11-NEXT: s_endpgm
|
|
%v = tail call i16 asm sideeffect "s_mov_b32 $0, -1", "=s"()
|
|
tail call void asm sideeffect "; use $0", "s"(i16 %v) #0
|
|
ret void
|
|
}
|
|
|
|
define amdgpu_kernel void @s_input_output_f16() #0 {
|
|
; GFX11-LABEL: s_input_output_f16:
|
|
; GFX11: ; %bb.0:
|
|
; GFX11-NEXT: ;;#ASMSTART
|
|
; GFX11-NEXT: s_mov_b32 s0, -1
|
|
; GFX11-NEXT: ;;#ASMEND
|
|
; GFX11-NEXT: ;;#ASMSTART
|
|
; GFX11-NEXT: ; use s0
|
|
; GFX11-NEXT: ;;#ASMEND
|
|
; GFX11-NEXT: s_endpgm
|
|
%v = tail call half asm sideeffect "s_mov_b32 $0, -1", "=s"() #0
|
|
tail call void asm sideeffect "; use $0", "s"(half %v)
|
|
ret void
|
|
}
|
|
|
|
define amdgpu_kernel void @v_input_output_f16() #0 {
|
|
; GFX11-LABEL: v_input_output_f16:
|
|
; GFX11: ; %bb.0:
|
|
; GFX11-NEXT: ;;#ASMSTART
|
|
; GFX11-NEXT: v_mov_b32 v0, -1
|
|
; GFX11-NEXT: ;;#ASMEND
|
|
; GFX11-NEXT: ;;#ASMSTART
|
|
; GFX11-NEXT: ; use v0
|
|
; GFX11-NEXT: ;;#ASMEND
|
|
; GFX11-NEXT: s_endpgm
|
|
%v = tail call half asm sideeffect "v_mov_b32 $0, -1", "=v"() #0
|
|
tail call void asm sideeffect "; use $0", "v"(half %v)
|
|
ret void
|
|
}
|
|
|
|
define amdgpu_kernel void @v_input_output_i16() #0 {
|
|
; GFX11-LABEL: v_input_output_i16:
|
|
; GFX11: ; %bb.0:
|
|
; GFX11-NEXT: ;;#ASMSTART
|
|
; GFX11-NEXT: v_mov_b32 v0, -1
|
|
; GFX11-NEXT: ;;#ASMEND
|
|
; GFX11-NEXT: v_and_b32_e32 v0, 0xffff, v0
|
|
; GFX11-NEXT: ;;#ASMSTART
|
|
; GFX11-NEXT: ; use v0
|
|
; GFX11-NEXT: ;;#ASMEND
|
|
; GFX11-NEXT: s_endpgm
|
|
%v = tail call i16 asm sideeffect "v_mov_b32 $0, -1", "=v"() #0
|
|
tail call void asm sideeffect "; use $0", "v"(i16 %v)
|
|
ret void
|
|
}
|
|
|
|
define amdgpu_kernel void @i16_imm_input_phys_vgpr() {
|
|
; GFX11-LABEL: i16_imm_input_phys_vgpr:
|
|
; GFX11: ; %bb.0: ; %entry
|
|
; GFX11-NEXT: v_mov_b32_e32 v0, 0xffff
|
|
; GFX11-NEXT: ;;#ASMSTART
|
|
; GFX11-NEXT: ; use v0
|
|
; GFX11-NEXT: ;;#ASMEND
|
|
; GFX11-NEXT: s_endpgm
|
|
entry:
|
|
call void asm sideeffect "; use $0 ", "{v0}"(i16 65535)
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { nounwind }
|