source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/addrmode.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: 366 bytes
Line 
1; REQUIRES: asserts
2; RUN: llc -mtriple=arm-eabi -stats %s -o - 2>&1 | FileCheck %s
3
4define i32 @t1(i32 %a) {
5        %b = mul i32 %a, 9
6        %c = inttoptr i32 %b to i32*
7        %d = load i32, i32* %c
8        ret i32 %d
9}
10
11define i32 @t2(i32 %a) {
12        %b = mul i32 %a, -7
13        %c = inttoptr i32 %b to i32*
14        %d = load i32, i32* %c
15        ret i32 %d
16}
17
18; CHECK: 4 asm-printer
19
Note: See TracBrowser for help on using the repository browser.