xref: /aosp_15_r20/external/llvm/test/MC/X86/intel-syntax-hex.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc -triple x86_64-unknown-unknown -x86-asm-syntax=intel %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker// rdar://12470373
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker// Checks to make sure we parse the hexadecimal suffix properly.
5*9880d681SAndroid Build Coastguard Worker// CHECK: movl $10, %eax
6*9880d681SAndroid Build Coastguard Worker  mov eax, 10
7*9880d681SAndroid Build Coastguard Worker// CHECK: movl $16, %eax
8*9880d681SAndroid Build Coastguard Worker  mov eax, 10h
9*9880d681SAndroid Build Coastguard Worker// CHECK: movl $16, %eax
10*9880d681SAndroid Build Coastguard Worker  mov eax, 10H
11*9880d681SAndroid Build Coastguard Worker// CHECK: movl $4294967295, %eax
12*9880d681SAndroid Build Coastguard Worker  mov eax, 0ffffffffh
13*9880d681SAndroid Build Coastguard Worker// CHECK: movl $4294967295, %eax
14*9880d681SAndroid Build Coastguard Worker  mov eax, 0xffffffff
15*9880d681SAndroid Build Coastguard Worker// CHECK: movl $4294967295, %eax
16*9880d681SAndroid Build Coastguard Worker  mov eax, 0xffffffffh
17*9880d681SAndroid Build Coastguard Worker// CHECK: movl $15, %eax
18*9880d681SAndroid Build Coastguard Worker  mov eax, 0fh
19*9880d681SAndroid Build Coastguard Worker// CHECK: movl $162, %eax
20*9880d681SAndroid Build Coastguard Worker  mov eax, 0a2h
21*9880d681SAndroid Build Coastguard Worker// CHECK: movl $162, %eax
22*9880d681SAndroid Build Coastguard Worker  mov eax, 0xa2
23*9880d681SAndroid Build Coastguard Worker// CHECK: movl $162, %eax
24*9880d681SAndroid Build Coastguard Worker  mov eax, 0xa2h
25*9880d681SAndroid Build Coastguard Worker// CHECK: movl $674, %eax
26*9880d681SAndroid Build Coastguard Worker  mov eax, 2a2h
27