summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Mips/mips4
diff options
context:
space:
mode:
authorMatheus Almeida <matheus.almeida@imgtec.com>2014-06-18 13:30:57 +0000
committerMatheus Almeida <matheus.almeida@imgtec.com>2014-06-18 13:30:57 +0000
commitc3c18956deb1964c1f7ae3d2804bff467d6f30e8 (patch)
treeba134a06284a1596f2e92e2430d46d00544230cb /llvm/test/MC/Mips/mips4
parent7e81576246ce7c2f01fcbc9375b911cad4b458f1 (diff)
downloadbcm5719-llvm-c3c18956deb1964c1f7ae3d2804bff467d6f30e8.tar.gz
bcm5719-llvm-c3c18956deb1964c1f7ae3d2804bff467d6f30e8.zip
[mips] Implement alias for 'and' and 'or' instructions for all ISAs.
Summary: Examples: and $2, 4 <=> andi $2, $2, 4 or $2, 4 <=> ori $2, $2, 4 Reviewers: dsanders Reviewed By: dsanders Differential Revision: http://reviews.llvm.org/D4155 llvm-svn: 211161
Diffstat (limited to 'llvm/test/MC/Mips/mips4')
-rw-r--r--llvm/test/MC/Mips/mips4/valid.s2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/MC/Mips/mips4/valid.s b/llvm/test/MC/Mips/mips4/valid.s
index 56e0be6fd0a..23f2fec5b25 100644
--- a/llvm/test/MC/Mips/mips4/valid.s
+++ b/llvm/test/MC/Mips/mips4/valid.s
@@ -11,6 +11,7 @@
addi $13,$9,26322
addu $9,$a0,$a2
and $s7,$v0,$12
+ and $2,4 # CHECK: andi $2, $2, 4 # encoding: [0x30,0x42,0x00,0x04]
bc1f $fcc0, 4 # CHECK: bc1f 4 # encoding: [0x45,0x00,0x00,0x01]
bc1f $fcc1, 4 # CHECK: bc1f $fcc1, 4 # encoding: [0x45,0x04,0x00,0x01]
bc1f 4 # CHECK: bc1f 4 # encoding: [0x45,0x00,0x00,0x01]
@@ -150,6 +151,7 @@
nop
nor $a3,$zero,$a3
or $12,$s0,$sp
+ or $2, 4 # CHECK: ori $2, $2, 4 # encoding: [0x34,0x42,0x00,0x04]
pref 1, 8($5) # CHECK: pref 1, 8($5) # encoding: [0xcc,0xa1,0x00,0x08]
round.l.d $f12,$f1
round.l.s $f25,$f5
OpenPOWER on IntegriCloud