2013-03-13 00:27:52 +08:00
|
|
|
; REQUIRES: asserts
|
2014-04-04 00:01:44 +08:00
|
|
|
; RUN: llc -mtriple=arm-eabi -stats %s -o - 2>&1 | FileCheck %s
|
2007-03-15 07:26:40 +08:00
|
|
|
|
|
|
|
define i32 @t1(i32 %a) {
|
|
|
|
%b = mul i32 %a, 9
|
|
|
|
%c = inttoptr i32 %b to i32*
|
|
|
|
%d = load i32* %c
|
|
|
|
ret i32 %d
|
|
|
|
}
|
|
|
|
|
|
|
|
define i32 @t2(i32 %a) {
|
|
|
|
%b = mul i32 %a, -7
|
|
|
|
%c = inttoptr i32 %b to i32*
|
|
|
|
%d = load i32* %c
|
|
|
|
ret i32 %d
|
|
|
|
}
|
2014-04-04 00:01:44 +08:00
|
|
|
|
|
|
|
; CHECK: 4 asm-printer
|
|
|
|
|