Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Feature / inlineasm.ll
1 ; RUN: llvm-upgrade %s -o - | llvm-as -o /dev/null -f &&
2 ; RUN: llvm-upgrade < %s | llvm-as | llvm-dis > Output/t1.ll &&
3 ; RUN: llvm-as Output/t1.ll -o - | llvm-dis > Output/t2.ll &&
4 ; RUN: diff Output/t1.ll Output/t2.ll
5
6
7 module asm "this is an inline asm block"
8 module asm "this is another inline asm block"
9
10 int %test() {
11   %X = call int asm "tricky here $0, $1", "=r,r"(int 4)
12   call void asm sideeffect "eieio", ""()
13   ret int %X
14 }