blob: 677ff8dc25306fbb64778fee5b83d6339e246a8a [file] [log] [blame]
Quentin Colombet545e5582016-07-13 20:36:03 +00001; RUN: llc -o - -verify-machineinstrs -mtriple=aarch64-apple-darwin -stop-after machine-sink %s | FileCheck %s --check-prefix=ISEL
2; RUN: llc -o - -verify-machineinstrs -mtriple=aarch64-apple-darwin -fast-isel -fast-isel-abort=1 -stop-after machine-sink %s | FileCheck %s --check-prefix=FAST-ISEL
Alex Lorenz2f43dd52015-08-10 21:27:03 +00003
4define void @caller_meta_leaf() {
5entry:
6 %metadata = alloca i64, i32 3, align 8
7 store i64 11, i64* %metadata
8 store i64 12, i64* %metadata
9 store i64 13, i64* %metadata
Serge Pavlovd526b132017-05-09 13:35:13 +000010; ISEL: ADJCALLSTACKDOWN 0, 0, implicit-def
Alex Lorenz2f43dd52015-08-10 21:27:03 +000011; ISEL-NEXT: STACKMAP
12; ISEL-NEXT: ADJCALLSTACKUP 0, 0, implicit-def
13 call void (i64, i32, ...) @llvm.experimental.stackmap(i64 4, i32 0, i64* %metadata)
Serge Pavlovd526b132017-05-09 13:35:13 +000014; FAST-ISEL: ADJCALLSTACKDOWN 0, 0, implicit-def
Alex Lorenz2f43dd52015-08-10 21:27:03 +000015; FAST-ISEL-NEXT: STACKMAP
16; FAST-ISEL-NEXT: ADJCALLSTACKUP 0, 0, implicit-def
17 ret void
18}
19
20declare void @llvm.experimental.stackmap(i64, i32, ...)