1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/test/CodeGen/AArch64/mul-lohi.ll
Tim Northover 3f497bbb76 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.

llvm-svn: 199265
2014-01-14 22:53:22 +00:00

13 lines
349 B
LLVM

; 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
}