[SystemZ] Also clear kill flag for index reg in splitMove().
[oota-llvm.git] / test / CodeGen / SystemZ / asm-03.ll
1 ; Test the "S" asm constraint, which accepts addresses that have a base
2 ; and a 20-bit displacement.
3 ;
4 ; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
5
6 define void @f1(i64 %base) {
7 ; CHECK-LABEL: f1:
8 ; CHECK: blah 0(%r2)
9 ; CHECK: br %r14
10   %addr = inttoptr i64 %base to i64 *
11   call void asm "blah $0", "=*S" (i64 *%addr)
12   ret void
13 }
14
15 ; FIXME: at the moment the precise constraint is not passed down to
16 ; target code, so we must conservatively treat "S" as "Q".