Zvi Rackover | 839d15a | 2016-09-26 06:42:07 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mcpu=skx -mtriple x86_64-unknown-linux-gnu -verify-machineinstrs | FileCheck %s |
2 | ; RUN: llc < %s -mcpu=skx -mtriple=x86_64-linux-gnux32 -verify-machineinstrs | FileCheck %s --check-prefix=X32 | ||||
3 | |||||
4 | define i32 @A() { | ||||
5 | ; CHECK: movq %rsp, %rdi | ||||
6 | ; CHECK-NEXT: call | ||||
7 | |||||
8 | ; X32: movl %esp, %edi | ||||
9 | ; X32-NEXT: call | ||||
10 | %alloc = alloca i32, align 8 | ||||
11 | %call = call i32 @foo(i32* %alloc) | ||||
12 | ret i32 %call | ||||
13 | } | ||||
14 | |||||
15 | declare i32 @foo(i32*) |