~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/MC/Mips/macro-la-bad.s

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r2 2>%t1
 
2
# RUN: FileCheck %s < %t1 --check-prefix=32-BIT
 
3
# RUN: not llvm-mc %s -arch=mips64 -mcpu=mips64 -target-abi n32 2>&1 | \
 
4
# RUN:   FileCheck %s --check-prefix=64-BIT --check-prefix=N32-ONLY
 
5
# RUN: not llvm-mc %s -arch=mips64 -mcpu=mips64 -target-abi n64 2>&1 | \
 
6
# RUN:   FileCheck %s --check-prefix=64-BIT --check-prefix=N64-ONLY
 
7
 
 
8
  .text
 
9
  la $5, 0x100000000
 
10
  # 32-BIT: :[[@LINE-1]]:3: error: instruction requires a 32-bit immediate
 
11
  # 64-BIT: :[[@LINE-2]]:3: error: instruction requires a 32-bit immediate
 
12
  la $5, 0x100000000($6)
 
13
  # 32-BIT: :[[@LINE-1]]:3: error: instruction requires a 32-bit immediate
 
14
  # 64-BIT: :[[@LINE-2]]:3: error: instruction requires a 32-bit immediate
 
15
  la $5, symbol
 
16
  # N64-ONLY: :[[@LINE-1]]:3: warning: instruction loads the 32-bit address of a 64-bit symbol
 
17
  # N32-ONLY-NOT: :[[@LINE-2]]:3: warning: instruction loads the 32-bit address of a 64-bit symbol