mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 23:20:54 +00:00
aea5485cfe
It would be better to check the valid/expected size of the immediate operand, but this is generally better than what we print right now. Differential Revision: http://reviews.llvm.org/D20385 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271114 91177308-0d34-0410-b5e6-96231b3b80d8
29 lines
766 B
ArmAsm
29 lines
766 B
ArmAsm
# RUN: llvm-mc %s -triple=x86_64-unknown-unknown | FileCheck %s
|
|
|
|
movb $127, %al
|
|
movb $-128, %al
|
|
|
|
movw $32767, %ax
|
|
movw $-32768, %ax
|
|
|
|
movl $2147483647, %eax
|
|
movl $-2147483648, %eax
|
|
|
|
movabsq $9223372036854775807, %rax
|
|
|
|
# This line should not induce undefined behavior via negation of INT64_MIN.
|
|
movabsq $-9223372036854775808, %rax
|
|
|
|
# CHECK: movb $127, %al
|
|
# CHECK: movb $-128, %al
|
|
|
|
# CHECK: movw $32767, %ax # imm = 0x7FFF
|
|
# CHECK: movw $-32768, %ax # imm = 0x8000
|
|
|
|
# CHECK: movl $2147483647, %eax # imm = 0x7FFFFFFF
|
|
# CHECK: movl $-2147483648, %eax # imm = 0x80000000
|
|
|
|
# CHECK: movabsq $9223372036854775807, %rax # imm = 0x7FFFFFFFFFFFFFFF
|
|
# CHECK: movabsq $-9223372036854775808, %rax # imm = 0x8000000000000000
|
|
|