~ubuntu-branches/ubuntu/utopic/binutils-arm64-cross/utopic

« back to all changes in this revision

Viewing changes to binutils-2.23.52.20130611/gas/testsuite/gas/score/logical_32.s

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-06-20 17:38:09 UTC
  • Revision ID: package-import@ubuntu.com-20130620173809-app8lzgvymy5fg6c
Tags: 0.7
Build-depend on binutils-source (>= 2.23.52.20130620-1~).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * tests for logical instruction relaxation
 
3
 *
 
4
 * Author: libin
 
5
 */
 
6
 
 
7
.include "relaxation_macro.h"
 
8
 
 
9
.macro _logical_op_pattern insn insn1
 
10
  insn_32 "\insn r0, r0, r15"
 
11
 
 
12
  tran_16_32 "\insn! r0, r15", "\insn r0, r0, r15"
 
13
 
 
14
  /* shouldn't alter */
 
15
  .set r1
 
16
  insn_32 "\insn1  r0,  r0,  r15"
 
17
  insn_32 "\insn   r0,  r0,  r16"
 
18
  insn_32 "\insn   r16, r16, r0"
 
19
  insn_32 "\insn   r16, r16, r17"
 
20
  insn_32 "\insn   r0,  r1,  r2"
 
21
.endm
 
22
 
 
23
.text
 
24
/* and/or rD,rA,rB -> and!/or! rD,rA */
 
25
_logical_op_pattern "and", "and.c"
 
26
_logical_op_pattern "or",  "or.c"