summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/v850/arith.s
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite/gas/v850/arith.s')
-rw-r--r--gas/testsuite/gas/v850/arith.s24
1 files changed, 24 insertions, 0 deletions
diff --git a/gas/testsuite/gas/v850/arith.s b/gas/testsuite/gas/v850/arith.s
new file mode 100644
index 00000000000..e72140fff13
--- /dev/null
+++ b/gas/testsuite/gas/v850/arith.s
@@ -0,0 +1,24 @@
+
+ .text
+ .global arith_opcodes
+arith_opcodes:
+ add r5,r6
+ add 5,r6
+ addi 7,r5,r6
+ divh r5,r6
+ mulh r5,r6
+ mulh 5,r6
+ mulhi 7,r5,r6
+ sar r5,r6
+ sar 31,r6
+ satadd r5,r6
+ satadd 5,r6
+ satsub r5,r6
+ satsubi 7,r5,r6
+ satsubr r5,r6
+ shl r5,r6
+ shl 31,r6
+ shr r5,r6
+ shr 31,r6
+ sub r5,r6
+ subr r5,r6