2015-07-14 14:24:22 +02:00
|
|
|
# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r2 2>%t1
|
2015-08-17 12:11:55 +02:00
|
|
|
# RUN: FileCheck %s < %t1 --check-prefix=O32
|
2015-07-14 14:24:22 +02:00
|
|
|
# RUN: not llvm-mc %s -arch=mips64 -mcpu=mips64 -target-abi n32 2>&1 | \
|
2015-08-17 12:11:55 +02:00
|
|
|
# RUN: FileCheck %s --check-prefix=N32
|
2015-07-14 14:24:22 +02:00
|
|
|
# RUN: not llvm-mc %s -arch=mips64 -mcpu=mips64 -target-abi n64 2>&1 | \
|
2015-08-17 12:11:55 +02:00
|
|
|
# RUN: FileCheck %s --check-prefix=N64
|
2015-07-14 14:24:22 +02:00
|
|
|
|
|
|
|
.text
|
|
|
|
la $5, 0x100000000
|
2015-08-17 12:11:55 +02:00
|
|
|
# O32: :[[@LINE-1]]:3: error: instruction requires a 32-bit immediate
|
|
|
|
# N32: :[[@LINE-2]]:3: error: instruction requires a 32-bit immediate
|
|
|
|
# N64: :[[@LINE-3]]:3: error: la used to load 64-bit address
|
|
|
|
|
2015-07-14 14:24:22 +02:00
|
|
|
la $5, 0x100000000($6)
|
2015-08-17 12:11:55 +02:00
|
|
|
# O32: :[[@LINE-1]]:3: error: instruction requires a 32-bit immediate
|
|
|
|
# N32: :[[@LINE-2]]:3: error: instruction requires a 32-bit immediate
|
|
|
|
# N64: :[[@LINE-3]]:3: error: la used to load 64-bit address
|
|
|
|
|
|
|
|
# FIXME: These should be warnings but we lack la -> dla promotion at the
|
|
|
|
# moment.
|
2015-07-14 14:24:22 +02:00
|
|
|
la $5, symbol
|
2015-08-17 12:11:55 +02:00
|
|
|
# N32-NOT: :[[@LINE-1]]:3: error: la used to load 64-bit address
|
|
|
|
# N64: :[[@LINE-2]]:3: error: la used to load 64-bit address
|