brintos

brintos / llvm-project-archived public Read only

0
0
Text · 570 B · 9342eb2 Raw
23 lines · plain
1; Test the "m" asm constraint, which is equivalent to "T".2; Likewise for the "o" asm constraint.3;4; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s5 6define void @f1(i64 %base) {7; CHECK-LABEL: f1:8; CHECK: blah 0(%r2)9; CHECK: br %r1410  %addr = inttoptr i64 %base to ptr11  call void asm "blah $0", "=*m" (ptr elementtype(i64) %addr)12  ret void13}14 15define void @f2(i64 %base) {16; CHECK-LABEL: f2:17; CHECK: blah 0(%r2)18; CHECK: br %r1419  %addr = inttoptr i64 %base to ptr20  call void asm "blah $0", "=*o" (ptr elementtype(i64) %addr)21  ret void22}23