summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Mips
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2016-04-29 16:16:49 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2016-04-29 16:16:49 +0000
commit7225cd52e70c02479ffc3bdc4dded02a688b8da4 (patch)
treee429cfa00eeb59979fb416781f7ba75235b8c18c /llvm/test/MC/Mips
parent173fc57b5438e05b6e7da9b9baace624e7d84a59 (diff)
downloadbcm5719-llvm-7225cd52e70c02479ffc3bdc4dded02a688b8da4.tar.gz
bcm5719-llvm-7225cd52e70c02479ffc3bdc4dded02a688b8da4.zip
[mips][ias] Move createCpRestoreMemOp to MipsTargetStreamer. NFC.
Summary: This removes the temporary call to isIntegratedAssemblerRequired() which was added recently. It's effect is now acheived directly in the MipsTargetStreamer hierarchy. Reviewers: sdardis Subscribers: dsanders, sdardis, llvm-commits Differential Revision: http://reviews.llvm.org/D19715 llvm-svn: 268058
Diffstat (limited to 'llvm/test/MC/Mips')
-rw-r--r--llvm/test/MC/Mips/double-expand.s24
1 files changed, 20 insertions, 4 deletions
diff --git a/llvm/test/MC/Mips/double-expand.s b/llvm/test/MC/Mips/double-expand.s
index 1c7c6a30721..ac03a6fa835 100644
--- a/llvm/test/MC/Mips/double-expand.s
+++ b/llvm/test/MC/Mips/double-expand.s
@@ -2,9 +2,25 @@
# RUN: llvm-mc -triple=mipsel-unknown-linux < %s | \
# RUN: llvm-mc -triple=mipsel-unknown-linux | FileCheck %s
-# CHECK: bnez $2, foo
-# CHECK: nop
-# CHECK-NOT: nop
-
.text
+branch:
bnez $2, foo
+
+# CHECK-LABEL: branch:
+# CHECK: bnez $2, foo
+# CHECK: nop
+# CHECK-NOT: nop
+
+cprestore:
+ .option pic2
+ .cprestore 16
+ jal foo
+
+# CHECK-LABEL: cprestore:
+# CHECK: .cprestore 16
+# CHECK: lw $25, %call16(foo)($gp)
+# CHECK: jalr $25
+# CHECK: nop
+# CHECK: lw $gp, 16($sp)
+# CHECK-NOT: nop
+# CHECK-NOT: lw
OpenPOWER on IntegriCloud