Dan Gohman | fce288f | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s |
Anton Korobeynikov | cd76128 | 2009-08-26 13:44:29 +0000 | [diff] [blame] | 2 | target datalayout = "e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8" |
| 3 | target triple = "msp430-generic-generic" |
| 4 | |
Anton Korobeynikov | 95eb470 | 2009-10-11 19:14:21 +0000 | [diff] [blame] | 5 | define void @imm() nounwind { |
| 6 | call void asm sideeffect "bic\09$0,r2", "i"(i16 32) nounwind |
| 7 | ret void |
| 8 | } |
| 9 | |
| 10 | define void @reg(i16 %a) nounwind { |
| 11 | call void asm sideeffect "bic\09$0,r2", "r"(i16 %a) nounwind |
| 12 | ret void |
| 13 | } |
| 14 | |
| 15 | @foo = global i16 0, align 2 |
| 16 | |
| 17 | define void @immmem() nounwind { |
| 18 | call void asm sideeffect "bic\09$0,r2", "i"(i16* getelementptr(i16* @foo, i32 1)) nounwind |
| 19 | ret void |
| 20 | } |
| 21 | |
| 22 | define void @mem() nounwind { |
Anton Korobeynikov | 123ed8f | 2009-11-07 17:13:35 +0000 | [diff] [blame] | 23 | %fooval = load i16* @foo |
| 24 | call void asm sideeffect "bic\09$0,r2", "m"(i16 %fooval) nounwind |
Anton Korobeynikov | 95eb470 | 2009-10-11 19:14:21 +0000 | [diff] [blame] | 25 | ret void |
Anton Korobeynikov | cd76128 | 2009-08-26 13:44:29 +0000 | [diff] [blame] | 26 | } |