1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 13:02:52 +02:00
llvm-mirror/test/CodeGen/X86/x32-lea-1.ll
Sanjay Patel 5dc61a737c [x86] auto-generate complete checks for tests; NFC
These all used 'CHECK-NOT' which isn't necessary if we have complete checks.

llvm-svn: 306981
2017-07-02 14:50:35 +00:00

17 lines
463 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-linux-gnux32 -O0 | FileCheck %s
define void @foo(i32** %p) {
; CHECK-LABEL: foo:
; CHECK: # BB#0:
; CHECK-NEXT: leal -{{[0-9]+}}(%rsp), %eax
; CHECK-NEXT: addl $16, %eax
; CHECK-NEXT: movl %eax, (%edi)
; CHECK-NEXT: retq
%a = alloca i32, i32 10
%addr = getelementptr i32, i32* %a, i32 4
store i32* %addr, i32** %p
ret void
}