You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
366 B
20 lines
366 B
; REQUIRES: asserts
|
|
; RUN: llc -mtriple=arm-eabi -stats %s -o - 2>&1 | FileCheck %s
|
|
|
|
define i32 @t1(i32 %a) {
|
|
%b = mul i32 %a, 9
|
|
%c = inttoptr i32 %b to i32*
|
|
%d = load i32, i32* %c
|
|
ret i32 %d
|
|
}
|
|
|
|
define i32 @t2(i32 %a) {
|
|
%b = mul i32 %a, -7
|
|
%c = inttoptr i32 %b to i32*
|
|
%d = load i32, i32* %c
|
|
ret i32 %d
|
|
}
|
|
|
|
; CHECK: 4 asm-printer
|
|
|