mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[AVR] Update integration/blink.ll as we now generate sbi/cbi instructions.
Silence long standing test failure. llvm-svn: 350353
This commit is contained in:
parent
76497de59d
commit
3076709e1e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user