1;; Test ARC EM Code denisty ADD_S extensions. They are only valid for 2;; ARCv2 architecture. 3;; 4; { dg-do assemble { target arc*-*-* } } 5; { dg-options "--mcpu=arc700" } 6 ;; The following insns are accepted by ARCv2 only 7 add_s r4,r4,-1 ; { dg-error "Error: inappropriate arguments for opcode 'add_s'" } 8 add_s 0,0xAAAA5555,-1 ; { dg-error "Error: inappropriate arguments for opcode 'add_s'" } 9 add_s r0,r15,0x20 ; { dg-error "Error: inappropriate arguments for opcode 'add_s'" } 10 add_s r1,r15,0x20 ; { dg-error "Error: inappropriate arguments for opcode 'add_s'" } 11