diff options
| author | Tim Northover <tnorthover@apple.com> | 2013-08-18 18:06:03 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2013-08-18 18:06:03 +0000 |
| commit | 57cf3500a3dec411500737b91e1a3970be488337 (patch) | |
| tree | e0bc8c3a572289aa69f7ecdceab8698bce81f68d /test/CodeGen | |
| parent | 3491d67d3a50e81e3f65c1bdf01dd7962dc10c46 (diff) | |
| download | llvm-57cf3500a3dec411500737b91e1a3970be488337.tar.gz llvm-57cf3500a3dec411500737b91e1a3970be488337.tar.bz2 llvm-57cf3500a3dec411500737b91e1a3970be488337.tar.xz | |
ARM: make sure we keep inline asm operands tied.
When patching inlineasm nodes to use GPRPair for 64-bit values, we
were dropping the information that two operands were tied, which
effectively broke the live-interval of vregs affected.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
| -rw-r--r-- | test/CodeGen/ARM/inlineasm-64bit.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/inlineasm-64bit.ll b/test/CodeGen/ARM/inlineasm-64bit.ll index b23db10632..69b3860305 100644 --- a/test/CodeGen/ARM/inlineasm-64bit.ll +++ b/test/CodeGen/ARM/inlineasm-64bit.ll @@ -85,3 +85,12 @@ define void @strd_test(i64* %p, i32 %lo, i32 %hi) nounwind { tail call void asm sideeffect "strd $0, ${0:H}, [$1]", "r,r"(i64 %4, i64* %p) nounwind ret void } + +; Make sure we don't untie operands by mistake. +define i64 @tied_64bit_test(i64 %in) nounwind { +; CHECK-LABEL: tied_64bit_test: +; CHECK: OUT([[OUTREG:r[0-9]+]]), IN([[OUTREG]]) + %addr = alloca i64 + call void asm "OUT($0), IN($1)", "=*rm,0"(i64* %addr, i64 %in) + ret i64 %in +} |
