diff options
| author | Tim Northover <tnorthover@apple.com> | 2014-01-14 22:53:22 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2014-01-14 22:53:22 +0000 |
| commit | 4e1247b836546287d2db40575a8daaca31351e86 (patch) | |
| tree | afd9d8322305caf2a981140f830fa70be197fcd5 /test/CodeGen | |
| parent | 808054f81fa1ce3e492cdb28d1b9d1cad9c85e56 (diff) | |
| download | llvm-4e1247b836546287d2db40575a8daaca31351e86.tar.gz llvm-4e1247b836546287d2db40575a8daaca31351e86.tar.bz2 llvm-4e1247b836546287d2db40575a8daaca31351e86.tar.xz | |
AArch64: don't try to handle [SU]MUL_LOHI nodes
We should set them to expand for now since there are no patterns
dealing with them. Actually, there are no instructions either so I
doubt they'll ever be acceptable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199265 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
| -rw-r--r-- | test/CodeGen/AArch64/mul-lohi.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/mul-lohi.ll b/test/CodeGen/AArch64/mul-lohi.ll new file mode 100644 index 0000000000..641a02aa0d --- /dev/null +++ b/test/CodeGen/AArch64/mul-lohi.ll @@ -0,0 +1,12 @@ +; RUN: llc -mtriple=aarch64-linux-gnu %s -o - | FileCheck %s + +define i128 @test_128bitmul(i128 %lhs, i128 %rhs) { +; CHECK: test_128bitmul: +; CHECK-DAG: umulh [[CARRY:x[0-9]+]], x0, x2 +; CHECK-DAG: madd [[PART1:x[0-9]+]], x0, x3, [[CARRY]] +; CHECK: madd x1, x1, x2, [[PART1]] +; CHECK: mul x0, x0, x2 + + %prod = mul i128 %lhs, %rhs + ret i128 %prod +} |
