summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2015-08-11 14:31:14 +0000
committerSanjay Patel <spatel@rotateright.com>2015-08-11 14:31:14 +0000
commit74ca3126663217a4afce759e342a074f9d91c831 (patch)
treec9d8834894deee7aea202a465ee6f12ee3e58d2e /llvm/test
parent52c2691829200710139decef3d0f5627423554bb (diff)
downloadbcm5719-llvm-74ca3126663217a4afce759e342a074f9d91c831.tar.gz
bcm5719-llvm-74ca3126663217a4afce759e342a074f9d91c831.zip
fix minsize detection: minsize attribute implies optimizing for size
llvm-svn: 244604
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/AArch64/mul-lohi.ll9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/AArch64/mul-lohi.ll b/llvm/test/CodeGen/AArch64/mul-lohi.ll
index 647594f41de..7237af28261 100644
--- a/llvm/test/CodeGen/AArch64/mul-lohi.ll
+++ b/llvm/test/CodeGen/AArch64/mul-lohi.ll
@@ -37,10 +37,11 @@ define i128 @test_128bitmul_optsize(i128 %lhs, i128 %rhs) optsize {
define i128 @test_128bitmul_minsize(i128 %lhs, i128 %rhs) minsize {
; CHECK-LABEL: test_128bitmul_minsize:
-; CHECK-DAG: mul [[PART1:x[0-9]+]], x0, x3
-; CHECK-DAG: umulh [[CARRY:x[0-9]+]], x0, x2
-; CHECK: mul [[PART2:x[0-9]+]], x1, x2
-; CHECK: mul x0, x0, x2
+; CHECK: umulh [[HI:x[0-9]+]], x0, x2
+; CHECK-NEXT: madd [[TEMP1:x[0-9]+]], x0, x3, [[HI]]
+; CHECK-NEXT: madd x1, x1, x2, [[TEMP1]]
+; CHECK-NEXT: mul x0, x0, x2
+; CHECK-NEXT: ret
%prod = mul i128 %lhs, %rhs
ret i128 %prod
OpenPOWER on IntegriCloud