xref: /llvm-project/llvm/test/Feature/inlineasm.ll (revision 5e606cb5034aa8826f8fe509d8d2534b0b821430)
1*5e606cb5SDaniel Dunbar; RUN: llvm-as < %s | llvm-dis > %t1.ll
2*5e606cb5SDaniel Dunbar; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3*5e606cb5SDaniel Dunbar; RUN: diff %t1.ll %t2.ll
4243f7296SChris Lattner
5a1280ad4SChris Lattnermodule asm "this is an inline asm block"
6a1280ad4SChris Lattnermodule asm "this is another inline asm block"
7243f7296SChris Lattner
8b7e02fc0STanya Lattnerdefine i32 @test() {
9b7e02fc0STanya Lattner        %X = call i32 asm "tricky here $0, $1", "=r,r"( i32 4 )         ; <i32> [#uses=1]
103ccaf6ecSChris Lattner        call void asm sideeffect "eieio", ""( )
11b7e02fc0STanya Lattner        ret i32 %X
123ccaf6ecSChris Lattner}
13b7e02fc0STanya Lattner
14