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*
|
2015-02-28 05:17:42 +08:00
|
|
|
%d = load i32, i32* %c
|
2007-03-15 07:26:40 +08:00
|
|
|
ret i32 %d
|
|
|
|
}
|
|
|
|
|
|
|
|
define i32 @t2(i32 %a) {
|
|
|
|
%b = mul i32 %a, -7
|
|
|
|
%c = inttoptr i32 %b to i32*
|
2015-02-28 05:17:42 +08:00
|
|
|
%d = load i32, i32* %c
|
2007-03-15 07:26:40 +08:00
|
|
|
ret i32 %d
|
|
|
|
}
|
2014-04-04 00:01:44 +08:00
|
|
|
|
|
|
|
; CHECK: 4 asm-printer
|
|
|
|
|