source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/ldr_frame.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: 812 bytes
Line 
1; RUN: llc -mtriple=arm-eabi -mattr=+v4t %s -o - | FileCheck %s
2
3define i32 @f1() {
4        %buf = alloca [32 x i32], align 4
5        %tmp = getelementptr [32 x i32], [32 x i32]* %buf, i32 0, i32 0
6        %tmp1 = load i32, i32* %tmp
7        ret i32 %tmp1
8}
9
10define i32 @f2() {
11        %buf = alloca [32 x i8], align 4
12        %tmp = getelementptr [32 x i8], [32 x i8]* %buf, i32 0, i32 0
13        %tmp1 = load i8, i8* %tmp
14        %tmp2 = zext i8 %tmp1 to i32
15        ret i32 %tmp2
16}
17
18define i32 @f3() {
19        %buf = alloca [32 x i32], align 4
20        %tmp = getelementptr [32 x i32], [32 x i32]* %buf, i32 0, i32 32
21        %tmp1 = load i32, i32* %tmp
22        ret i32 %tmp1
23}
24
25define i32 @f4() {
26        %buf = alloca [32 x i8], align 4
27        %tmp = getelementptr [32 x i8], [32 x i8]* %buf, i32 0, i32 2
28        %tmp1 = load i8, i8* %tmp
29        %tmp2 = zext i8 %tmp1 to i32
30        ret i32 %tmp2
31}
32
33; CHECK-NOT: mov
34
Note: See TracBrowser for help on using the repository browser.