source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/Windows/no-frame-register.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 535 bytes
Line 
1; RUN: llc -mtriple thumbv7-windows -filetype asm -o - %s | FileCheck %s
2
3declare void @callee(i32)
4
5define i32 @calleer(i32 %i) {
6entry:
7  %i.addr = alloca i32, align 4
8  %j = alloca i32, align 4
9  store i32 %i, i32* %i.addr, align 4
10  %0 = load i32, i32* %i.addr, align 4
11  %add = add nsw i32 %0, 1
12  store i32 %add, i32* %j, align 4
13  %1 = load i32, i32* %j, align 4
14  call void @callee(i32 %1)
15  %2 = load i32, i32* %j, align 4
16  %add1 = add nsw i32 %2, 1
17  ret i32 %add1
18}
19
20; CHECK-NOT: push.w {r7, lr}
21; CHECK: push.w {r11, lr}
22
Note: See TracBrowser for help on using the repository browser.