mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 07:22:55 +01:00
74d9647d18
llvm-svn: 176873
17 lines
334 B
LLVM
17 lines
334 B
LLVM
; REQUIRES: asserts
|
|
; RUN: llc < %s -march=arm -stats 2>&1 | 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
|
|
}
|