summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorJozef Kolek <jozef.kolek@imgtec.com>2015-04-20 13:04:14 +0000
committerJozef Kolek <jozef.kolek@imgtec.com>2015-04-20 13:04:14 +0000
commit5de4a6c0af0df9f5ae5f9614d2a5fd0f17c597b8 (patch)
tree14bc5af18f487b2c443887423bc8aca031d68bbd /llvm/test
parente4ab49e8d3cfd1556b61d4af79fede0e477ebfb0 (diff)
downloadbcm5719-llvm-5de4a6c0af0df9f5ae5f9614d2a5fd0f17c597b8.tar.gz
bcm5719-llvm-5de4a6c0af0df9f5ae5f9614d2a5fd0f17c597b8.zip
[mips][microMIPSr6] Implement BALC and BC instructions
This patch implements BALC and BC instructions using mapping. Differential Revision: http://reviews.llvm.org/D8388 llvm-svn: 235302
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/Mips/micromips32r6/valid.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/MC/Mips/micromips32r6/valid.s b/llvm/test/MC/Mips/micromips32r6/valid.s
new file mode 100644
index 00000000000..e0e854450b9
--- /dev/null
+++ b/llvm/test/MC/Mips/micromips32r6/valid.s
@@ -0,0 +1,5 @@
+# RUN: llvm-mc %s -triple=mips-unknown-linux -show-encoding -mcpu=mips32r6 -mattr=micromips | FileCheck %s
+
+ .set noat
+ balc 14572256 # CHECK: balc 14572256 # encoding: [0xb4,0x37,0x96,0xb8]
+ bc 14572256 # CHECK: bc 14572256 # encoding: [0x94,0x37,0x96,0xb8]
OpenPOWER on IntegriCloud