blob: e4318f775b6b77016452e467cbc0abdad2d99f4b [file] [log] [blame]
Tanya Lattner9bc243b2008-03-01 07:38:40 +00001; RUN: llvm-as < %s | llvm-dis > t1.ll
Duncan Sands6c7ada42007-07-23 15:23:35 +00002; RUN: llvm-as t1.ll -o - | llvm-dis > t2.ll
3; RUN: diff t1.ll t2.ll
Chris Lattnerfb90fe32006-01-23 23:24:13 +00004
Chris Lattner52599e12006-01-24 00:37:20 +00005module asm "this is an inline asm block"
6module asm "this is another inline asm block"
Chris Lattnerfb90fe32006-01-23 23:24:13 +00007
Tanya Lattner9bc243b2008-03-01 07:38:40 +00008define i32 @test() {
9 %X = call i32 asm "tricky here $0, $1", "=r,r"( i32 4 ) ; <i32> [#uses=1]
10 call void asm sideeffect "eieio", ""( )
11 ret i32 %X
Chris Lattner3f970fd2006-01-25 23:49:54 +000012}
Tanya Lattner9bc243b2008-03-01 07:38:40 +000013