mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
Summary: LI should never accept immediates larger than 32 bits. The additional Is32BitImm boolean also paves the way for unifying the functionality that LA and LI have in common. Reviewers: dsanders Reviewed By: dsanders Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9289 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236313 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
473 B
ArmAsm
12 lines
473 B
ArmAsm
# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r2 2>%t1
|
|
# RUN: FileCheck %s < %t1 --check-prefix=32-BIT
|
|
# RUN: not llvm-mc %s -arch=mips64 -mcpu=mips64 2>&1 | \
|
|
# RUN: FileCheck %s --check-prefix=64-BIT
|
|
|
|
.text
|
|
li $5, 0x100000000
|
|
# 32-BIT: :[[@LINE-1]]:3: error: instruction requires a 32-bit immediate
|
|
# 64-BIT: :[[@LINE-2]]:3: error: instruction requires a 32-bit immediate
|
|
dli $5, 1
|
|
# 32-BIT: :[[@LINE-1]]:3: error: instruction requires a 64-bit architecture
|