mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
a88322c283
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173197 91177308-0d34-0410-b5e6-96231b3b80d8
35 lines
1004 B
LLVM
35 lines
1004 B
LLVM
; RUN: llc -march=mips < %s | FileCheck %s
|
|
|
|
define void @f1(i64 %ll1, float %f, i64 %ll, i32 %i, float %f2) nounwind {
|
|
entry:
|
|
; CHECK: or $[[R1:[0-9]+]], $5, $zero
|
|
; CHECK: or $[[R0:[0-9]+]], $4, $zero
|
|
; CHECK: ori $6, ${{[0-9]+}}, 3855
|
|
; CHECK: ori $7, ${{[0-9]+}}, 22136
|
|
; CHECK: lw $25, %call16(ff1)
|
|
; CHECK: jalr
|
|
tail call void @ff1(i32 %i, i64 1085102592623924856) nounwind
|
|
; CHECK: lw $25, %call16(ff2)
|
|
; CHECK: lw $[[R2:[0-9]+]], 80($sp)
|
|
; CHECK: lw $[[R3:[0-9]+]], 84($sp)
|
|
; CHECK: or $4, $[[R2]], $zero
|
|
; CHECK: or $5, $[[R3]], $zero
|
|
; CHECK: jalr $25
|
|
tail call void @ff2(i64 %ll, double 3.000000e+00) nounwind
|
|
%sub = add nsw i32 %i, -1
|
|
; CHECK: lw $25, %call16(ff3)
|
|
; CHECK: sw $[[R1]], 28($sp)
|
|
; CHECK: sw $[[R0]], 24($sp)
|
|
; CHECK: or $6, $[[R2]], $zero
|
|
; CHECK: or $7, $[[R3]], $zero
|
|
; CHECK: jalr $25
|
|
tail call void @ff3(i32 %i, i64 %ll, i32 %sub, i64 %ll1) nounwind
|
|
ret void
|
|
}
|
|
|
|
declare void @ff1(i32, i64)
|
|
|
|
declare void @ff2(i64, double)
|
|
|
|
declare void @ff3(i32, i64, i32, i64)
|