Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/ARM/ifcvt5.ll
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

75 lines
2.1 KiB
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=armv7-apple-ios -mcpu=cortex-a8 | FileCheck %s -check-prefix=A8
; RUN: llc < %s -mtriple=armv7-apple-ios -mcpu=swift | FileCheck %s -check-prefix=SWIFT
; rdar://8402126
@x = external global ptr ; <ptr> [#uses=1]
define void @foo(i32 %a) "frame-pointer"="none" {
; A8-LABEL: foo:
; A8: @ %bb.0: @ %entry
; A8-NEXT: movw r1, :lower16:(L_x$non_lazy_ptr-(LPC0_0+8))
; A8-NEXT: movt r1, :upper16:(L_x$non_lazy_ptr-(LPC0_0+8))
; A8-NEXT: LPC0_0:
; A8-NEXT: ldr r1, [pc, r1]
; A8-NEXT: ldr r1, [r1]
; A8-NEXT: str r0, [r1]
; A8-NEXT: bx lr
;
; SWIFT-LABEL: foo:
; SWIFT: @ %bb.0: @ %entry
; SWIFT-NEXT: movw r1, :lower16:(L_x$non_lazy_ptr-(LPC0_0+8))
; SWIFT-NEXT: movt r1, :upper16:(L_x$non_lazy_ptr-(LPC0_0+8))
; SWIFT-NEXT: LPC0_0:
; SWIFT-NEXT: ldr r1, [pc, r1]
; SWIFT-NEXT: ldr r1, [r1]
; SWIFT-NEXT: str r0, [r1]
; SWIFT-NEXT: bx lr
entry:
%tmp = load ptr, ptr @x ; <ptr> [#uses=1]
store i32 %a, ptr %tmp
ret void
}
define i32 @t1(i32 %a, i32 %b) "frame-pointer"="all" {
; A8-LABEL: t1:
; A8: @ %bb.0: @ %entry
; A8-NEXT: mov r2, r0
; A8-NEXT: mov r0, #1
; A8-NEXT: cmp r2, #10
; A8-NEXT: bxle lr
; A8-NEXT: LBB1_1: @ %cond_true
; A8-NEXT: push {r7, lr}
; A8-NEXT: mov r7, sp
; A8-NEXT: mov r0, r1
; A8-NEXT: bl _foo
; A8-NEXT: mov r0, #0
; A8-NEXT: pop {r7, lr}
; A8-NEXT: bx lr
;
; SWIFT-LABEL: t1:
; SWIFT: @ %bb.0: @ %entry
; SWIFT-NEXT: mov r2, r0
; SWIFT-NEXT: mov r0, #1
; SWIFT-NEXT: cmp r2, #10
; SWIFT-NEXT: bxle lr
; SWIFT-NEXT: LBB1_1: @ %cond_true
; SWIFT-NEXT: push {r7, lr}
; SWIFT-NEXT: mov r7, sp
; SWIFT-NEXT: mov r0, r1
; SWIFT-NEXT: bl _foo
; SWIFT-NEXT: mov r0, #0
; SWIFT-NEXT: pop {r7, lr}
; SWIFT-NEXT: bx lr
entry:
%tmp1 = icmp sgt i32 %a, 10 ; <i1> [#uses=1]
br i1 %tmp1, label %cond_true, label %UnifiedReturnBlock
cond_true: ; preds = %entry
tail call void @foo( i32 %b )
ret i32 0
UnifiedReturnBlock: ; preds = %entry
ret i32 1
}