aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/AArch64/remat.ll
blob: 8b3e6dd5ad92af7a961626921fafe66ad8f45893 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; 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
; RUN: llc -mtriple=aarch64-linux-gnuabi -mcpu=cortex-a72 -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 
}