Bob Wilson | 6c982bb | 2009-05-19 05:53:42 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -march=arm | grep swp |
2 | ; PR4091 | ||||
3 | |||||
4 | define void @foo(i32 %i, i32* %p) nounwind { | ||||
5 | %asmtmp = call i32 asm sideeffect "swp $0, $2, $3", "=&r,=*m,r,*m,~{memory}"(i32* %p, i32 %i, i32* %p) nounwind | ||||
6 | ret void | ||||
7 | } |