mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
fce288fc91
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81293 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
310 B
LLVM
16 lines
310 B
LLVM
; RUN: llc < %s -march=arm -stats |& grep asm-printer | grep 4
|
|
|
|
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
|
|
}
|