xref: /llvm-project/llvm/test/CodeGen/ARM/inlineasm.ll (revision a5007faaa68de9487fe63b690bea6e16c3c5f770)
1; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6
2
3uint %test1(uint %tmp54) {
4  %tmp56 = tail call uint asm "uxtb16 $0,$1", "=r,r"( uint %tmp54 )
5  ret uint %tmp56
6}
7
8void %test2() {
9  %tmp1 = call long asm "ldmia $1!, {$0, ${0:H}}", "=r,==r,1"( int** null, int* null )
10  %tmp1 = cast long %tmp1 to ulong
11  %tmp2 = shr ulong %tmp1, ubyte 32
12  %tmp3 = cast ulong %tmp2 to int
13  %tmp4 = call int asm "pkhbt $0, $1, $2, lsl #16", "=r,r,r"( int 0, int %tmp3 )
14  ret void
15}
16