Files
TheRock/compiler/amd-llvm/llvm/test/MC/X86/x86_64-imm-widths.s
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

106 lines
2.6 KiB
ArmAsm

// RUN: llvm-mc -triple x86_64- --show-encoding %s | FileCheck %s
// CHECK: addb $0, %al
// CHECK: encoding: [0x04,0x00]
addb $0x00, %al
// CHECK: addb $127, %al
// CHECK: encoding: [0x04,0x7f]
addb $0x7F, %al
// CHECK: addb $128, %al
// CHECK: encoding: [0x04,0x80]
addb $0x80, %al
// CHECK: addb $255, %al
// CHECK: encoding: [0x04,0xff]
addb $0xFF, %al
// CHECK: addw $0, %ax
// CHECK: encoding: [0x66,0x83,0xc0,0x00]
addw $0x0000, %ax
// CHECK: addw $127, %ax
// CHECK: encoding: [0x66,0x83,0xc0,0x7f]
addw $0x007F, %ax
// CHECK: addw $65408, %ax
// CHECK: encoding: [0x66,0x83,0xc0,0x80]
addw $0xFF80, %ax
// CHECK: addw $65535, %ax
// CHECK: encoding: [0x66,0x83,0xc0,0xff]
addw $0xFFFF, %ax
// CHECK: addl $0, %eax
// CHECK: encoding: [0x83,0xc0,0x00]
addl $0x00000000, %eax
// CHECK: addl $127, %eax
// CHECK: encoding: [0x83,0xc0,0x7f]
addl $0x0000007F, %eax
// CHECK: addl $65408, %eax
// CHECK: encoding: [0x05,0x80,0xff,0x00,0x00]
addl $0xFF80, %eax
// CHECK: addl $65535, %eax
// CHECK: encoding: [0x05,0xff,0xff,0x00,0x00]
addl $0xFFFF, %eax
// CHECK: addl $4294967168, %eax
// CHECK: encoding: [0x83,0xc0,0x80]
addl $0xFFFFFF80, %eax
// CHECK: addl $4294967295, %eax
// CHECK: encoding: [0x83,0xc0,0xff]
addl $0xFFFFFFFF, %eax
// CHECK: addq $0, %rax
// CHECK: encoding: [0x48,0x83,0xc0,0x00]
addq $0x0000000000000000, %rax
// CHECK: addq $127, %rax
// CHECK: encoding: [0x48,0x83,0xc0,0x7f]
addq $0x000000000000007F, %rax
// CHECK: addq $-128, %rax
// CHECK: encoding: [0x48,0x83,0xc0,0x80]
addq $0xFFFFFFFFFFFFFF80, %rax
// CHECK: addq $-1, %rax
// CHECK: encoding: [0x48,0x83,0xc0,0xff]
addq $0xFFFFFFFFFFFFFFFF, %rax
// CHECK: addq $0, %rax
// CHECK: encoding: [0x48,0x83,0xc0,0x00]
addq $0x0000000000000000, %rax
// CHECK: addq $65408, %rax
// CHECK: encoding: [0x48,0x05,0x80,0xff,0x00,0x00]
addq $0xFF80, %rax
// CHECK: addq $65535, %rax
// CHECK: encoding: [0x48,0x05,0xff,0xff,0x00,0x00]
addq $0xFFFF, %rax
// CHECK: movabsq $4294967168, %rax
// CHECK: encoding: [0x48,0xb8,0x80,0xff,0xff,0xff,0x00,0x00,0x00,0x00]
movq $0xFFFFFF80, %rax
// CHECK: movabsq $4294967295, %rax
// CHECK: encoding: [0x48,0xb8,0xff,0xff,0xff,0xff,0x00,0x00,0x00,0x00]
movq $0xFFFFFFFF, %rax
// CHECK: addq $2147483647, %rax
// CHECK: encoding: [0x48,0x05,0xff,0xff,0xff,0x7f]
addq $0x000000007FFFFFFF, %rax
// CHECK: addq $-2147483648, %rax
// CHECK: encoding: [0x48,0x05,0x00,0x00,0x00,0x80]
addq $0xFFFFFFFF80000000, %rax
// CHECK: addq $-256, %rax
// CHECK: encoding: [0x48,0x05,0x00,0xff,0xff,0xff]
addq $0xFFFFFFFFFFFFFF00, %rax