mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
142428ce64
llvm-svn: 81293
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
|
|
}
|