diff options
author | Stephen Hines <srhines@google.com> | 2015-04-01 18:49:24 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-04-01 18:49:26 +0000 |
commit | 3fa16bd6062e23bcdb82ed4dd965674792e6b761 (patch) | |
tree | 9348fc507292f7e8715d22d64ce5a32131b4f875 /test/MC/Mips/cpsetup.s | |
parent | beed47390a60f6f0c77532b3d3f76bb47ef49423 (diff) | |
parent | ebe69fe11e48d322045d5949c83283927a0d790b (diff) | |
download | external_llvm-3fa16bd6062e23bcdb82ed4dd965674792e6b761.zip external_llvm-3fa16bd6062e23bcdb82ed4dd965674792e6b761.tar.gz external_llvm-3fa16bd6062e23bcdb82ed4dd965674792e6b761.tar.bz2 |
Merge "Update aosp/master LLVM for rebase to r230699."
Diffstat (limited to 'test/MC/Mips/cpsetup.s')
-rw-r--r-- | test/MC/Mips/cpsetup.s | 45 |
1 files changed, 39 insertions, 6 deletions
diff --git a/test/MC/Mips/cpsetup.s b/test/MC/Mips/cpsetup.s index a21a1e3..a3ffae6 100644 --- a/test/MC/Mips/cpsetup.s +++ b/test/MC/Mips/cpsetup.s @@ -1,19 +1,19 @@ -# RUN: llvm-mc -triple mips64-unknown-unknown -mattr=-n64,+o32 -filetype=obj -o - %s | \ +# RUN: llvm-mc -triple mips64-unknown-unknown -target-abi o32 -filetype=obj -o - %s | \ # RUN: llvm-objdump -d -r -arch=mips64 - | \ # RUN: FileCheck -check-prefix=O32 %s -# RUN: llvm-mc -triple mips64-unknown-unknown -mattr=-n64,+o32 %s | \ +# RUN: llvm-mc -triple mips64-unknown-unknown -target-abi o32 %s | \ # RUN: FileCheck -check-prefix=ASM %s -# RUN: llvm-mc -triple mips64-unknown-unknown -mattr=-n64,+n32 -filetype=obj -o - %s | \ -# RUN: llvm-objdump -d -r -arch=mips64 - | \ +# RUN: llvm-mc -triple mips64-unknown-unknown -target-abi n32 -filetype=obj -o - %s | \ +# RUN: llvm-objdump -d -r -t -arch=mips64 - | \ # RUN: FileCheck -check-prefix=NXX -check-prefix=N32 %s -# RUN: llvm-mc -triple mips64-unknown-unknown -mattr=-n64,+n32 %s | \ +# RUN: llvm-mc -triple mips64-unknown-unknown -target-abi n32 %s | \ # RUN: FileCheck -check-prefix=ASM %s # RUN: llvm-mc -triple mips64-unknown-unknown %s -filetype=obj -o - | \ -# RUN: llvm-objdump -d -r -arch=mips64 - | \ +# RUN: llvm-objdump -d -r -t -arch=mips64 - | \ # RUN: FileCheck -check-prefix=NXX -check-prefix=N64 %s # RUN: llvm-mc -triple mips64-unknown-unknown %s | \ @@ -61,6 +61,35 @@ t2: # ASM: .cpsetup $25, $2, __cerror +# .cpsetup with local labels (PR22518): +1: + .cpsetup $25, $2, 1b + nop + sub $3, $3, $2 + nop + +# O32: t2: +# O32: nop +# O32: sub $3, $3, $2 +# O32: nop + +# FIXME: Direct object emission for N32 is still under development. +# N32 doesn't allow 3 operations to be specified in the same relocation +# record like N64 does. + +# NXX: move $2, $gp +# NXX: lui $gp, 0 +# NXX: R_MIPS_GPREL16/R_MIPS_SUB/R_MIPS_HI16 $tmp0 +# NXX: addiu $gp, $gp, 0 +# NXX: R_MIPS_GPREL16/R_MIPS_SUB/R_MIPS_LO16 $tmp0 +# N32: addu $gp, $gp, $25 +# N64: daddu $gp, $gp, $25 +# NXX: nop +# NXX: sub $3, $3, $2 +# NXX: nop + +# ASM: .cpsetup $25, $2, $tmp0 + t3: .option pic0 nop @@ -76,3 +105,7 @@ t3: # ASM: nop # ASM: .cpsetup $25, 8, __cerror # ASM: nop + +# For .cpsetup with local labels, we need to check if $tmp0 is in the symbol +# table: +# NXX: .text 00000000 $tmp0 |