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
70 lines
2.4 KiB
ArmAsm
70 lines
2.4 KiB
ArmAsm
// RUN: llvm-mc -triple x86_64- --show-encoding %s | FileCheck %s
|
|
|
|
// These should map mov -> movabs
|
|
|
|
// CHECK: movabsb %al, 78187493520
|
|
// CHECK: encoding: [0xa2,0x90,0x78,0x56,0x34,0x12,0x00,0x00,0x00]
|
|
movb %al, 0x1234567890
|
|
// CHECK: movabsw %ax, 78187493520
|
|
// CHECK: encoding: [0x66,0xa3,0x90,0x78,0x56,0x34,0x12,0x00,0x00,0x00]
|
|
movw %ax, 0x1234567890
|
|
// CHECK: movabsl %eax, 78187493520
|
|
// CHECK: encoding: [0xa3,0x90,0x78,0x56,0x34,0x12,0x00,0x00,0x00]
|
|
movl %eax, 0x1234567890
|
|
// CHECK: movabsq %rax, 78187493520
|
|
// CHECK: encoding: [0x48,0xa3,0x90,0x78,0x56,0x34,0x12,0x00,0x00,0x00]
|
|
movq %rax, 0x1234567890
|
|
|
|
// CHECK: movabsb 78187493520, %al
|
|
// CHECK: encoding: [0xa0,0x90,0x78,0x56,0x34,0x12,0x00,0x00,0x00]
|
|
movb 0x1234567890, %al
|
|
// CHECK: movabsw 78187493520, %ax
|
|
// CHECK: encoding: [0x66,0xa1,0x90,0x78,0x56,0x34,0x12,0x00,0x00,0x00]
|
|
movw 0x1234567890, %ax
|
|
// CHECK: movabsl 78187493520, %eax
|
|
// CHECK: encoding: [0xa1,0x90,0x78,0x56,0x34,0x12,0x00,0x00,0x00]
|
|
movl 0x1234567890, %eax
|
|
// CHECK: movabsq 78187493520, %rax
|
|
// CHECK: encoding: [0x48,0xa1,0x90,0x78,0x56,0x34,0x12,0x00,0x00,0x00]
|
|
movq 0x1234567890, %rax
|
|
|
|
// These should *NOT* map mov -> movabs
|
|
|
|
// CHECK: movb %al, 305419896
|
|
// CHECK: encoding: [0x88,0x04,0x25,0x78,0x56,0x34,0x12]
|
|
movb %al, 0x12345678
|
|
// CHECK: movw %ax, 305419896
|
|
// CHECK: encoding: [0x66,0x89,0x04,0x25,0x78,0x56,0x34,0x12]
|
|
movw %ax, 0x12345678
|
|
// CHECK: movl %eax, 305419896
|
|
// CHECK: encoding: [0x89,0x04,0x25,0x78,0x56,0x34,0x12]
|
|
movl %eax, 0x12345678
|
|
// CHECK: movq %rax, 305419896
|
|
// CHECK: encoding: [0x48,0x89,0x04,0x25,0x78,0x56,0x34,0x12]
|
|
movq %rax, 0x12345678
|
|
|
|
// CHECK: movb 305419896, %al
|
|
// CHECK: encoding: [0x8a,0x04,0x25,0x78,0x56,0x34,0x12]
|
|
movb 0x12345678, %al
|
|
// CHECK: movw 305419896, %ax
|
|
// CHECK: encoding: [0x66,0x8b,0x04,0x25,0x78,0x56,0x34,0x12]
|
|
movw 0x12345678, %ax
|
|
// CHECK: movl 305419896, %eax
|
|
// CHECK: encoding: [0x8b,0x04,0x25,0x78,0x56,0x34,0x12]
|
|
movl 0x12345678, %eax
|
|
// CHECK: movq 305419896, %rax
|
|
// CHECK: encoding: [0x48,0x8b,0x04,0x25,0x78,0x56,0x34,0x12]
|
|
movq 0x12345678, %rax
|
|
|
|
// Test sign extension
|
|
|
|
// CHECK: movb %al, 2147483647
|
|
// CHECK: encoding: [0x88,0x04,0x25,0xff,0xff,0xff,0x7f]
|
|
movb %al, 0x7fffffff
|
|
// CHECK: movabsb %al, 2147483648
|
|
// CHECK: encoding: [0xa2,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00]
|
|
movb %al, 0x80000000
|
|
// CHECK: movb %al, -2147483648
|
|
// CHECK: encoding: [0x88,0x04,0x25,0x00,0x00,0x00,0x80]
|
|
movb %al, 0xffffffff80000000
|