2013-10-24 17:32:31 +08:00
|
|
|
; RUN: llc < %s | FileCheck %s
|
|
|
|
|
|
|
|
target datalayout = "e-p:16:16:16-i8:8:8-i16:16:16-i32:16:32-n8:16-a0:16:16"
|
|
|
|
target triple = "msp430---elf"
|
|
|
|
|
|
|
|
define void @test() #0 {
|
|
|
|
; CHECK-LABEL: test:
|
2018-11-15 20:29:43 +08:00
|
|
|
; CHECK: sub #2, r1
|
2013-10-24 17:32:31 +08:00
|
|
|
%1 = alloca i8, align 1
|
2018-11-15 20:29:43 +08:00
|
|
|
; CHECK-NEXT: clr.b 1(r1)
|
2013-10-24 17:32:31 +08:00
|
|
|
store i8 0, i8* %1, align 1
|
2018-11-15 20:29:43 +08:00
|
|
|
; CHECK-NEXT: add #2, r1
|
2013-10-24 17:32:31 +08:00
|
|
|
; CHECK-NEXT: ret
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2019-12-25 08:11:33 +08:00
|
|
|
attributes #0 = { nounwind "frame-pointer"="none" }
|