aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/AArch64/remat.ll
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2014-10-30 14:35:26 -0700
committerStephen Hines <srhines@google.com>2014-10-30 14:35:26 -0700
commit98c0d2bab9bb8899258096bb808b6cd61e29221e (patch)
treebcec4a74ba7cd1f74232529538cf67791ef27752 /test/CodeGen/AArch64/remat.ll
parente0742d6e6198807da4a8a977345182c537f6e9df (diff)
downloadexternal_llvm-98c0d2bab9bb8899258096bb808b6cd61e29221e.zip
external_llvm-98c0d2bab9bb8899258096bb808b6cd61e29221e.tar.gz
external_llvm-98c0d2bab9bb8899258096bb808b6cd61e29221e.tar.bz2
Revert "Revert "Bring in fixes for Cortex-A53 errata + build updates.""
This reverts commit c8db087b3b6d8767db4fa54057ac8fa448d812ca.
Diffstat (limited to 'test/CodeGen/AArch64/remat.ll')
-rw-r--r--test/CodeGen/AArch64/remat.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/remat.ll b/test/CodeGen/AArch64/remat.ll
new file mode 100644
index 0000000..32b3ed2
--- /dev/null
+++ b/test/CodeGen/AArch64/remat.ll
@@ -0,0 +1,16 @@
+; RUN: llc -mtriple=aarch64-linux-gnuabi -mcpu=cortex-a57 -o - %s | FileCheck %s
+; RUN: llc -mtriple=aarch64-linux-gnuabi -mcpu=cortex-a53 -o - %s | FileCheck %s
+
+%X = type { i64, i64, i64 }
+declare void @f(%X*)
+define void @t() {
+entry:
+ %tmp = alloca %X
+ call void @f(%X* %tmp)
+; CHECK: add x0, sp, #8
+; CHECK-NEXT-NOT: mov
+ call void @f(%X* %tmp)
+; CHECK: add x0, sp, #8
+; CHECK-NEXT-NOT: mov
+ ret void
+}