2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s
|
2009-08-26 21:44:29 +08:00
|
|
|
target datalayout = "e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8"
|
|
|
|
target triple = "msp430-generic-generic"
|
|
|
|
|
2009-10-12 03:14:21 +08:00
|
|
|
define void @imm() nounwind {
|
|
|
|
call void asm sideeffect "bic\09$0,r2", "i"(i16 32) nounwind
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @reg(i16 %a) nounwind {
|
|
|
|
call void asm sideeffect "bic\09$0,r2", "r"(i16 %a) nounwind
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
@foo = global i16 0, align 2
|
|
|
|
|
|
|
|
define void @immmem() nounwind {
|
2015-03-14 02:20:45 +08:00
|
|
|
call void asm sideeffect "bic\09$0,r2", "i"(i16* getelementptr(i16, i16* @foo, i32 1)) nounwind
|
2009-10-12 03:14:21 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @mem() nounwind {
|
2015-02-28 05:17:42 +08:00
|
|
|
%fooval = load i16, i16* @foo
|
2009-11-08 01:13:35 +08:00
|
|
|
call void asm sideeffect "bic\09$0,r2", "m"(i16 %fooval) nounwind
|
2009-10-12 03:14:21 +08:00
|
|
|
ret void
|
2009-08-26 21:44:29 +08:00
|
|
|
}
|