[llvm] r351539 - [AVR] Fix the inst-cbr test

Dylan McKay via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 18 02:11:33 PST 2019


Author: dylanmckay
Date: Fri Jan 18 02:11:33 2019
New Revision: 351539

URL: http://llvm.org/viewvc/llvm-project?rev=351539&view=rev
Log:
[AVR] Fix the inst-cbr test

Now that the CBR alias has lower priority than ANDI, the assembly
printer uses ANDI instead.

Original broken in r351526.

Modified:
    llvm/trunk/test/MC/AVR/inst-cbr.s

Modified: llvm/trunk/test/MC/AVR/inst-cbr.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AVR/inst-cbr.s?rev=351539&r1=351538&r2=351539&view=diff
==============================================================================
--- llvm/trunk/test/MC/AVR/inst-cbr.s (original)
+++ llvm/trunk/test/MC/AVR/inst-cbr.s Fri Jan 18 02:11:33 2019
@@ -8,7 +8,7 @@ foo:
   cbr r20, 173
   cbr r31, 0
 
-; CHECK: cbr r17, 208                 ; encoding: [0x1f,0x72]
-; CHECK: cbr r24, 190                 ; encoding: [0x81,0x74]
-; CHECK: cbr r20, 173                 ; encoding: [0x42,0x75]
-; CHECK: cbr r31, 0                   ; encoding: [0xff,0x7f]
+; CHECK: andi r17, -209              ; encoding: [0x1f,0x72]
+; CHECK: andi r24, -191              ; encoding: [0x81,0x74]
+; CHECK: andi r20, -174              ; encoding: [0x42,0x75]
+; CHECK: andi r31, -1                ; encoding: [0xff,0x7f]




More information about the llvm-commits mailing list