brintos

brintos / llvm-project-archived public Read only

0
0
Text · 703 B · 3ea3036 Raw
27 lines · plain
1; RUN: llc < %s2target datalayout = "e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8"3target triple = "msp430-generic-generic"4 5define void @imm() nounwind {6        call void asm sideeffect "bic\09$0,r2", "i"(i16 32) nounwind7        ret void8}9 10define void @reg(i16 %a) nounwind {11        call void asm sideeffect "bic\09$0,r2", "r"(i16 %a) nounwind12        ret void13}14 15@foo = global i16 0, align 216 17define void @immmem() nounwind {18        call void asm sideeffect "bic\09$0,r2", "i"(ptr getelementptr(i16, ptr @foo, i32 1)) nounwind19        ret void20}21 22define void @mem() nounwind {23        %fooval = load i16, ptr @foo24        call void asm sideeffect "bic\09$0,r2", "m"(i16 %fooval) nounwind25        ret void26}27