summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorZoran Jovanovic <zoran.jovanovic@imgtec.com>2014-04-03 12:01:01 +0000
committerZoran Jovanovic <zoran.jovanovic@imgtec.com>2014-04-03 12:01:01 +0000
commit842f20ef0b8e70a76801cccb1c0061d711f3ebc2 (patch)
treea5e458f25eaef8318429ee471a02596d48196bb5 /llvm/test
parent5c33265c9e85bb9ce7d37be40c6ac870be720c5f (diff)
downloadbcm5719-llvm-842f20ef0b8e70a76801cccb1c0061d711f3ebc2.tar.gz
bcm5719-llvm-842f20ef0b8e70a76801cccb1c0061d711f3ebc2.zip
MicroMIPS specific little endian fixup data byte ordering.
Differential Revision: http://llvm-reviews.chandlerc.com/D3245 llvm-svn: 205528
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/Mips/micromips-el-fixup-data.s25
1 files changed, 25 insertions, 0 deletions
diff --git a/llvm/test/MC/Mips/micromips-el-fixup-data.s b/llvm/test/MC/Mips/micromips-el-fixup-data.s
new file mode 100644
index 00000000000..2293f63d46d
--- /dev/null
+++ b/llvm/test/MC/Mips/micromips-el-fixup-data.s
@@ -0,0 +1,25 @@
+# RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 \
+# RUN: -mattr=+micromips 2>&1 -filetype=obj > %t.o
+# RUN: llvm-objdump %t.o -triple mipsel -mattr=+micromips -d | FileCheck %s
+
+# Check that fixup data is writen in the microMIPS specific little endian
+# byte order.
+
+ .text
+ .globl main
+ .align 2
+ .type main,@function
+ .set micromips
+ .set nomips16
+ .ent main
+main:
+ addiu $sp, $sp, -16
+ bnez $9, lab1
+
+# CHECK: 09 b4 04 00 bne $9, $zero, 8
+
+ addu $zero, $zero, $zero
+lab1:
+ jr $ra
+ addiu $sp, $sp, 16
+ .end main
OpenPOWER on IntegriCloud