From 40b2c31e67d0f3b324ddebfc024b85d1ac6a3825 Mon Sep 17 00:00:00 2001 From: Nirav Dave Date: Thu, 3 Jan 2019 21:25:39 +0000 Subject: [PATCH] [AVR] Update integration/blink.ll as we now generate sbi/cbi instructions. Silence long standing test failure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350353 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/AVR/integration/blink.ll | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/test/CodeGen/AVR/integration/blink.ll b/test/CodeGen/AVR/integration/blink.ll index ef88e3ea24b..29c3b7f48ff 100644 --- a/test/CodeGen/AVR/integration/blink.ll +++ b/test/CodeGen/AVR/integration/blink.ll @@ -34,15 +34,8 @@ define void @setup_ddr() { entry: - ; This should load the value of DDRB, OR it with the bit number and store - ; the result back to DDRB. - - ; CHECK: in [[TMPREG:r[0-9]+]], 4 - ; CHECK-NEXT: ori [[TMPREG]], 32 - - ; CHECK-NOT: ori {{r[0-9]+}}, 0 - - ; CHECK-NEXT: out 4, [[TMPREG]] + ; This should set the 5th bit of DDRB. + ; CHECK: sbi 4, 5 ; CHECK-NEXT: ret %0 = load volatile i8, i8* inttoptr (i16 36 to i8*), align 1 @@ -58,15 +51,8 @@ entry: define void @turn_on() { entry: - ; This should load the value of PORTB, OR it with the bit number and store - ; the result back to DDRB. - - ; CHECK: in [[TMPREG:r[0-9]+]], 5 - ; CHECK-NEXT: ori [[TMPREG]], 32 - - ; CHECK-NOT: ori {{r[0-9]+}}, 0 - - ; CHECK-NEXT: out 5, [[TMPREG]] + ; This should set the 5th bit of PORTB + ; CHECK: sbi 5, 5 ; CHECK-NEXT: ret %0 = load volatile i8, i8* inttoptr (i16 37 to i8*), align 1 @@ -82,14 +68,8 @@ entry: define void @turn_off() { entry: - ; This should load the value of PORTB, OR it with the bit number and store - ; the result back to DDRB. - - - ; CHECK: in [[TMPREG:r[0-9]+]], 5 - ; CHECK-NEXT: andi [[TMPREG]], 223 - ; CHECK-NEXT: andi {{r[0-9]+}}, 0 - ; CHECK-NEXT: out 5, [[TMPREG]] + ; This should clear the 5th bit of PORTB + ; CHECK: cbi 5, 5 ; CHECK-NEXT: ret %0 = load volatile i8, i8* inttoptr (i16 37 to i8*), align 1 -- 2.11.0