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
71 lines
2.2 KiB
LLVM
71 lines
2.2 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -mtriple=riscv32 -relocation-model=static < %s | FileCheck %s --check-prefix=RV32
|
|
; RUN: llc -mtriple=riscv64 -relocation-model=pic < %s | FileCheck %s --check-prefix=RV64
|
|
|
|
@var = external dso_local global i32, align 4
|
|
@a = external global [2 x [2 x i32]], align 4
|
|
|
|
define dso_local void @test() {
|
|
; RV32-LABEL: test:
|
|
; RV32: # %bb.0: # %entry
|
|
; RV32-NEXT: #APP
|
|
; RV32-NEXT: # var a+12 test
|
|
; RV32-NEXT: #NO_APP
|
|
; RV32-NEXT: #APP
|
|
; RV32-NEXT: # var a+12 test
|
|
; RV32-NEXT: #NO_APP
|
|
; RV32-NEXT: ret
|
|
;
|
|
; RV64-LABEL: test:
|
|
; RV64: # %bb.0: # %entry
|
|
; RV64-NEXT: #APP
|
|
; RV64-NEXT: # var a+12 .Ltest$local
|
|
; RV64-NEXT: #NO_APP
|
|
; RV64-NEXT: #APP
|
|
; RV64-NEXT: # var a+12 .Ltest$local
|
|
; RV64-NEXT: #NO_APP
|
|
; RV64-NEXT: ret
|
|
entry:
|
|
call void asm sideeffect "// $0 $1 $2", "s,s,s,~{dirflag},~{fpsr},~{flags}"(ptr @var, ptr getelementptr inbounds ([2 x [2 x i32]], ptr @a, i64 0, i64 1, i64 1), ptr @test)
|
|
|
|
;; Implement "S" as an alias for "s".
|
|
call void asm sideeffect "// $0 $1 $2", "S,S,S,~{dirflag},~{fpsr},~{flags}"(ptr @var, ptr getelementptr inbounds ([2 x [2 x i32]], ptr @a, i64 0, i64 1, i64 1), ptr @test)
|
|
ret void
|
|
}
|
|
|
|
; Function Attrs: nofree nosync nounwind readnone
|
|
define dso_local ptr @test_label() {
|
|
; RV32-LABEL: test_label:
|
|
; RV32: # %bb.0: # %entry
|
|
; RV32-NEXT: .Ltmp0: # Block address taken
|
|
; RV32-NEXT: # %bb.1: # %L1
|
|
; RV32-NEXT: #APP
|
|
; RV32-NEXT: # .Ltmp0
|
|
; RV32-NEXT: #NO_APP
|
|
; RV32-NEXT: #APP
|
|
; RV32-NEXT: lui a0, %hi(.Ltmp0)
|
|
; RV32-NEXT: addi a0, a0, %lo(.Ltmp0)
|
|
; RV32-NEXT: #NO_APP
|
|
; RV32-NEXT: ret
|
|
;
|
|
; RV64-LABEL: test_label:
|
|
; RV64: # %bb.0: # %entry
|
|
; RV64-NEXT: .Ltmp0: # Block address taken
|
|
; RV64-NEXT: # %bb.1: # %L1
|
|
; RV64-NEXT: #APP
|
|
; RV64-NEXT: # .Ltmp0
|
|
; RV64-NEXT: #NO_APP
|
|
; RV64-NEXT: #APP
|
|
; RV64-NEXT: lui a0, %hi(.Ltmp0)
|
|
; RV64-NEXT: addi a0, a0, %lo(.Ltmp0)
|
|
; RV64-NEXT: #NO_APP
|
|
; RV64-NEXT: ret
|
|
entry:
|
|
br label %L1
|
|
|
|
L1:
|
|
call void asm sideeffect "// $0", "s,~{dirflag},~{fpsr},~{flags}"(ptr blockaddress(@test_label, %L1))
|
|
%ret = tail call ptr asm "lui $0, %hi($1)\0Aaddi $0, $0, %lo($1)", "=r,S"(ptr blockaddress(@test_label, %L1))
|
|
ret ptr %ret
|
|
}
|