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
2.0 KiB
LLVM
62 lines
2.0 KiB
LLVM
; RUN: llc -mtriple=thumbv6m-apple-none-macho -relocation-model=pic -o - %s | FileCheck %s --check-prefix=CHECK-THUMB-PIC
|
|
; RUN: llc -mtriple=arm-apple-none-macho -relocation-model=pic -o - %s | FileCheck %s --check-prefix=CHECK-ARM-PIC
|
|
; RUN: llc -mtriple=thumbv6m-apple-none-macho -relocation-model=dynamic-no-pic -o - %s | FileCheck %s --check-prefix=CHECK-DYNAMIC
|
|
; RUN: llc -mtriple=arm-apple-none-macho -relocation-model=dynamic-no-pic -o - %s | FileCheck %s --check-prefix=CHECK-DYNAMIC
|
|
; RUN: llc -mtriple=thumbv6m-apple-none-macho -relocation-model=static -o - %s | FileCheck %s --check-prefix=CHECK-STATIC
|
|
; RUN: llc -mtriple=arm-apple-none-macho -relocation-model=static -o - %s | FileCheck %s --check-prefix=CHECK-STATIC
|
|
@var = global [16 x i32] zeroinitializer
|
|
|
|
declare void @bar(ptr)
|
|
|
|
define void @foo() {
|
|
%flag = load i32, ptr getelementptr inbounds([16 x i32], ptr @var, i32 0, i32 1)
|
|
%tst = icmp eq i32 %flag, 0
|
|
br i1 %tst, label %true, label %false
|
|
true:
|
|
tail call void @bar(ptr getelementptr inbounds([16 x i32], ptr @var, i32 0, i32 4))
|
|
ret void
|
|
false:
|
|
ret void
|
|
}
|
|
|
|
; CHECK-THUMB-PIC-LABEL: foo:
|
|
; CHECK-THUMB-PIC: ldr r0, LCPI0_0
|
|
; CHECK-THUMB-PIC: LPC0_0:
|
|
; CHECK-THUMB-PIC-NEXT: add r0, pc
|
|
; CHECK-THUMB-PIC: ldr {{r[1-9][0-9]?}}, [r0, #4]
|
|
|
|
; CHECK-THUMB-PIC: LCPI0_0:
|
|
; CHECK-THUMB-PIC-NEXT: .long _var-(LPC0_0+4)
|
|
; CHECK-THUMB-PIC-NOT: LCPI0_1
|
|
|
|
|
|
; CHECK-ARM-PIC-LABEL: foo:
|
|
; CHECK-ARM-PIC: ldr [[VAR_OFFSET:r[0-9]+]], LCPI0_0
|
|
; CHECK-ARM-PIC: LPC0_0:
|
|
; CHECK-ARM-PIC-NEXT: add r0, pc, [[VAR_OFFSET]]
|
|
; CHECK-ARM-PIC: ldr {{r[0-9]+}}, [r0, #4]
|
|
|
|
; CHECK-ARM-PIC: LCPI0_0:
|
|
; CHECK-ARM-PIC-NEXT: .long _var-(LPC0_0+8)
|
|
; CHECK-ARM-PIC-NOT: LCPI0_1
|
|
|
|
|
|
; CHECK-DYNAMIC-LABEL: foo:
|
|
; CHECK-DYNAMIC: ldr r0, LCPI0_0
|
|
; CHECK-DYNAMIC: ldr {{r[1-9][0-9]?}}, [r0, #4]
|
|
|
|
; CHECK-DYNAMIC: LCPI0_0:
|
|
; CHECK-DYNAMIC-NEXT: .long _var
|
|
; CHECK-DYNAMIC-NOT: LCPI0_1
|
|
|
|
|
|
; CHECK-STATIC-LABEL: foo:
|
|
; CHECK-STATIC: ldr r0, LCPI0_0
|
|
; CHECK-STATIC: ldr {{r[1-9][0-9]?}}, [r0, #4]
|
|
|
|
; CHECK-STATIC: LCPI0_0:
|
|
; CHECK-STATIC-NEXT: .long _var{{$}}
|
|
; CHECK-STATIC-NOT: LCPI0_1
|
|
|
|
|