summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Hexagon
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-01-15 14:08:31 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-01-15 14:08:31 +0000
commit2a3b2f9841c65c52899dd7f4b127ce6bccec3ccd (patch)
treee3587418c4d8334d21a8c52d89566a3be2da90b9 /llvm/test/CodeGen/Hexagon
parent9b7320e62193634eae2c15e7f0c91de51ce61926 (diff)
downloadbcm5719-llvm-2a3b2f9841c65c52899dd7f4b127ce6bccec3ccd.tar.gz
bcm5719-llvm-2a3b2f9841c65c52899dd7f4b127ce6bccec3ccd.zip
[Hexagon] Generate CONST64 when optimizing for size in copy-to-combine
llvm-svn: 257891
Diffstat (limited to 'llvm/test/CodeGen/Hexagon')
-rw-r--r--llvm/test/CodeGen/Hexagon/const64.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Hexagon/const64.ll b/llvm/test/CodeGen/Hexagon/const64.ll
new file mode 100644
index 00000000000..018157d9702
--- /dev/null
+++ b/llvm/test/CodeGen/Hexagon/const64.ll
@@ -0,0 +1,18 @@
+; RUN: llc -march=hexagon -disable-const64=0 < %s | FileCheck %s
+; RUN: llc -march=hexagon -disable-const64=1 < %s | FileCheck %s --check-prefix=CHECKOLD
+
+; CHECK: CONST64
+; CHECKOLD-NOT: CONST64
+
+target datalayout = "e-m:e-p:32:32-i1:32-i64:64-a:0-v32:32-n16:32"
+target triple = "hexagon"
+
+; Function Attrs: nounwind
+define void @foo() optsize {
+entry:
+ call void @bar(i32 32768, i32 32768, i8 zeroext 1)
+ ret void
+}
+
+declare void @bar(i32, i32, i8 zeroext)
+
OpenPOWER on IntegriCloud