blob: e4318f775b6b77016452e467cbc0abdad2d99f4b [file] [log] [blame]
Tanya Lattnerfc887452008-03-01 07:38:40 +00001; RUN: llvm-as < %s | llvm-dis > t1.ll
Duncan Sandsa524e0e2007-07-23 15:23:35 +00002; RUN: llvm-as t1.ll -o - | llvm-dis > t2.ll
3; RUN: diff t1.ll t2.ll
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005module asm "this is an inline asm block"
6module asm "this is another inline asm block"
7
Tanya Lattnerfc887452008-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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012}
Tanya Lattnerfc887452008-03-01 07:38:40 +000013