[SystemZ] Two tests missing from previous commit
[oota-llvm.git] / test / CodeGen / SystemZ / asm-05.ll
1 ; Test the "m" asm constraint, which is equivalent to "T".
2 ;
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
4
5 define void @f1(i64 %base) {
6 ; CHECK: f1:
7 ; CHECK: blah 0(%r2)
8 ; CHECK: br %r14
9   %addr = inttoptr i64 %base to i64 *
10   call void asm "blah $0", "=*m" (i64 *%addr)
11   ret void
12 }
13
14 ; FIXME: at the moment the precise constraint is not passed down to
15 ; target code, so we must conservatively treat "m" as "Q".