Files
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

83 lines
2.6 KiB
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
; RUN: llc -mtriple=i386-apple-darwin9.6 < %s | FileCheck %s --check-prefixes=CHECK,X86
; RUN: llc -mtriple=x86_64-apple-darwin < %s | FileCheck %s --check-prefixes=CHECK,X64
define i32 @test1() nounwind {
; CHECK-LABEL: test1:
; CHECK: ## %bb.0: ## %entry
; CHECK-NEXT: ## InlineAsm Start
; CHECK-NEXT: movw %gs:6, %ax
; CHECK-NEXT: ## InlineAsm End
; CHECK-NEXT: movzwl %ax, %eax
; CHECK-NEXT: ret{{[l|q]}}
entry:
%asmtmp.i = tail call i16 asm "movw\09%gs:${1:a}, ${0:w}", "=r,ir,~{dirflag},~{fpsr},~{flags}"(i32 6) nounwind ; <i16> [#uses=1]
%0 = zext i16 %asmtmp.i to i32 ; <i32> [#uses=1]
ret i32 %0
}
define zeroext i16 @test2(i32 %address) nounwind {
; X86-LABEL: test2:
; X86: ## %bb.0: ## %entry
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
; X86-NEXT: ## InlineAsm Start
; X86-NEXT: movw %gs:(%eax), %ax
; X86-NEXT: ## InlineAsm End
; X86-NEXT: movzwl %ax, %eax
; X86-NEXT: retl
;
; X64-LABEL: test2:
; X64: ## %bb.0: ## %entry
; X64-NEXT: ## InlineAsm Start
; X64-NEXT: movw %gs:(%edi), %ax
; X64-NEXT: ## InlineAsm End
; X64-NEXT: movzwl %ax, %eax
; X64-NEXT: retq
entry:
%asmtmp = tail call i16 asm "movw\09%gs:${1:a}, ${0:w}", "=r,ir,~{dirflag},~{fpsr},~{flags}"(i32 %address) nounwind ; <i16> [#uses=1]
ret i16 %asmtmp
}
@n = global i32 42 ; <ptr> [#uses=3]
@y = common global i32 0 ; <ptr> [#uses=3]
define void @test3() nounwind {
; X86-LABEL: test3:
; X86: ## %bb.0: ## %entry
; X86-NEXT: ## InlineAsm Start
; X86-NEXT: movl _n, %eax
; X86-NEXT: ## InlineAsm End
; X86-NEXT: retl
;
; X64-LABEL: test3:
; X64: ## %bb.0: ## %entry
; X64-NEXT: ## InlineAsm Start
; X64-NEXT: movl _n(%rip), %eax
; X64-NEXT: ## InlineAsm End
; X64-NEXT: retq
entry:
call void asm sideeffect "movl ${0:a}, %eax", "ir,~{dirflag},~{fpsr},~{flags},~{eax}"(ptr @n) nounwind
ret void
}
define void @test4() nounwind {
; X86-LABEL: test4:
; X86: ## %bb.0: ## %entry
; X86-NEXT: movl L_y$non_lazy_ptr, %ecx
; X86-NEXT: ## InlineAsm Start
; X86-NEXT: movl (%ecx), %eax
; X86-NEXT: ## InlineAsm End
; X86-NEXT: retl
;
; X64-LABEL: test4:
; X64: ## %bb.0: ## %entry
; X64-NEXT: movq _y@GOTPCREL(%rip), %rcx
; X64-NEXT: ## InlineAsm Start
; X64-NEXT: movl (%rcx), %eax
; X64-NEXT: ## InlineAsm End
; X64-NEXT: retq
entry:
call void asm sideeffect "movl ${0:a}, %eax", "ir,~{dirflag},~{fpsr},~{flags},~{eax}"(ptr @y) nounwind
ret void
}