2009-09-09 02:09:15 +02:00
|
|
|
; RUN: llc < %s
|
2009-08-26 15:44:29 +02:00
|
|
|
target datalayout = "e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8"
|
|
|
|
target triple = "msp430-generic-generic"
|
|
|
|
|
2009-10-11 21:14:21 +02: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-13 19:20:45 +01:00
|
|
|
call void asm sideeffect "bic\09$0,r2", "i"(i16* getelementptr(i16, i16* @foo, i32 1)) nounwind
|
2009-10-11 21:14:21 +02:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @mem() nounwind {
|
2015-02-27 22:17:42 +01:00
|
|
|
%fooval = load i16, i16* @foo
|
2009-11-07 18:13:35 +01:00
|
|
|
call void asm sideeffect "bic\09$0,r2", "m"(i16 %fooval) nounwind
|
2009-10-11 21:14:21 +02:00
|
|
|
ret void
|
2009-08-26 15:44:29 +02:00
|
|
|
}
|