From: Dylan McKay Date: Fri, 24 Nov 2017 15:36:43 +0000 (+0000) Subject: [AVR] Use the short form of 'clr ' X-Git-Tag: llvmorg-6.0.0-rc1~2723 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3972a8f11fe08ead61d94e7313c880acea65bcc;p=platform%2Fupstream%2Fllvm.git [AVR] Use the short form of 'clr ' r318895 made it so that the simpler instruction aliases are printed rather than their expanded form. llvm-svn: 318954 --- diff --git a/llvm/test/CodeGen/AVR/interrupts.ll b/llvm/test/CodeGen/AVR/interrupts.ll index 21f4eca..5dddf0e 100644 --- a/llvm/test/CodeGen/AVR/interrupts.ll +++ b/llvm/test/CodeGen/AVR/interrupts.ll @@ -7,7 +7,7 @@ define avr_intrcc void @interrupt_handler() { ; CHECK-NEXT: push r1 ; CHECK-NEXT: in r0, 63 ; CHECK-NEXT: push r0 -; CHECK: eor r0, r0 +; CHECK: clr r0 ; CHECK: pop r0 ; CHECK-NEXT: out 63, r0 ; CHECK-NEXT: pop r1 @@ -23,7 +23,7 @@ define avr_signalcc void @signal_handler() { ; CHECK-NEXT: push r1 ; CHECK-NEXT: in r0, 63 ; CHECK-NEXT: push r0 -; CHECK: eor r0, r0 +; CHECK: clr r0 ; CHECK: pop r0 ; CHECK-NEXT: out 63, r0 ; CHECK-NEXT: pop r1 diff --git a/llvm/test/CodeGen/AVR/mul.ll b/llvm/test/CodeGen/AVR/mul.ll index 3756abe..2f16934 100644 --- a/llvm/test/CodeGen/AVR/mul.ll +++ b/llvm/test/CodeGen/AVR/mul.ll @@ -3,7 +3,7 @@ define i8 @mult8(i8 %a, i8 %b) { ; CHECK-LABEL: mult8: ; CHECK: muls r22, r24 -; CHECK: eor r1, r1 +; CHECK: clr r1 ; CHECK: mov r24, r0 %mul = mul i8 %b, %a ret i8 %mul @@ -16,10 +16,10 @@ define i16 @mult16(i16 %a, i16 %b) { ; CHECK: mul r22, r24 ; CHECK: mov r19, r0 ; CHECK: mov r20, r1 -; CHECK: eor r1, r1 +; CHECK: clr r1 ; CHECK: add r20, r18 ; CHECK: muls r23, r24 -; CHECK: eor r1, r1 +; CHECK: clr r1 ; CHECK: mov r22, r0 ; CHECK: add r22, r20 ; :TODO: finish after reworking shift instructions diff --git a/llvm/test/CodeGen/AVR/zext.ll b/llvm/test/CodeGen/AVR/zext.ll index ff7a653c..1f679c9 100644 --- a/llvm/test/CodeGen/AVR/zext.ll +++ b/llvm/test/CodeGen/AVR/zext.ll @@ -4,27 +4,27 @@ ; eor R25, R25 define i16 @zext1(i8 %x) { ; CHECK-LABEL: zext1: -; CHECK: eor r25, r25 +; CHECK: clr r25 %1 = zext i8 %x to i16 ret i16 %1 } ; zext R25:R24, R20 ; mov R24, R20 -; eor R25, R25 +; clr R25 define i16 @zext2(i8 %x, i8 %y) { ; CHECK-LABEL: zext2: ; CHECK: mov r24, r22 -; CHECK: eor r25, r25 +; CHECK: clr r25 %1 = zext i8 %y to i16 ret i16 %1 } ; zext R25:R24, R24 -; eor R25, R25 +; clr R25 define i16 @zext_i1(i1 %x) { ; CHECK-LABEL: zext_i1: -; CHECK: eor r25, r25 +; CHECK: clr r25 %1 = zext i1 %x to i16 ret i16 %1 } diff --git a/llvm/test/MC/AVR/inst-clr.s b/llvm/test/MC/AVR/inst-clr.s index 4687ebd..f48ef86 100644 --- a/llvm/test/MC/AVR/inst-clr.s +++ b/llvm/test/MC/AVR/inst-clr.s @@ -8,7 +8,8 @@ foo: clr r5 clr r0 -; CHECK: eor r2, r2 ; encoding: [0x22,0x24] -; CHECK: eor r12, r12 ; encoding: [0xcc,0x24] -; CHECK: eor r5, r5 ; encoding: [0x55,0x24] -; CHECK: eor r0, r0 ; encoding: [0x00,0x24] +; CHECK: clr r2 ; encoding: [0x22,0x24] +; CHECK: clr r12 ; encoding: [0xcc,0x24] +; CHECK: clr r5 ; encoding: [0x55,0x24] +; CHECK: clr r0 ; encoding: [0x00,0x24] +