brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 933f98c Raw
39 lines · plain
1# RUN: not llvm-mc -triple=x86_64 %s 2>&1 | FileCheck %s --check-prefixes=CHECK,X64 --implicit-check-not=error: --implicit-check-not=warning:2# RUN: llvm-mc -triple=i686 --defsym A16=1 %s 2>&1 | FileCheck %s --check-prefixes=CHECK,X86 --implicit-check-not=error: --implicit-check-not=warning:3 4.ifndef A165movq 0x80000000-1(%rip), %rax6leaq -0x80000000(%rip), %rax7 8# X64: [[#@LINE+1]]:17: error: displacement 2147483648 is not within [-2147483648, 2147483647]9movq 0x80000000(%rip), %rax10 11# X64: [[#@LINE+1]]:18: error: displacement -2147483649 is not within [-2147483648, 2147483647]12leaq -0x80000001(%rip), %rax13.endif14 15movl 0xffffffff(%eax), %eax16leal -0xffffffff(%eax), %eax17 18# CHECK: [[#@LINE+1]]:19: warning: displacement 4294967296 shortened to 32-bit signed 019movl 0xffffffff+1(%eax), %eax20 21# CHECK: [[#@LINE+1]]:20: warning: displacement -4294967296 shortened to 32-bit signed 022leal -0xffffffff-1(%eax), %eax23# CHECK: [[#@LINE+1]]:20: warning: displacement -4294967297 shortened to 32-bit signed -124leal -0xffffffff-2(%eax), %eax25 26{disp8} leal 0x100(%ebx), %eax27{disp8} leal -0x100(%ebx), %eax28 29.ifdef A1630.code1631movw $0, 0xffff(%bp)32movw $0, -0xffff(%si)33 34# X86: [[#@LINE+1]]:19: warning: displacement 65536 shortened to 16-bit signed 035movw $0, 0xffff+1(%bp)36# X86: [[#@LINE+1]]:20: warning: displacement -65536 shortened to 16-bit signed 037movw $0, -0xffff-1(%si)38.endif39