mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-01 04:29:57 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146059 91177308-0d34-0410-b5e6-96231b3b80d8
36 lines
799 B
LLVM
36 lines
799 B
LLVM
; RUN: llc -march=mips64el -mcpu=mips64 < %s | FileCheck %s
|
|
|
|
define i64 @foo3() nounwind readnone {
|
|
entry:
|
|
; CHECK: foo3
|
|
; CHECK: lui $[[R0:[0-9]+]], 4660
|
|
; CHECK: ori ${{[0-9]+}}, $[[R0]], 22136
|
|
ret i64 305419896
|
|
}
|
|
|
|
define i64 @foo6() nounwind readnone {
|
|
entry:
|
|
; CHECK: foo6
|
|
; CHECK: ori ${{[0-9]+}}, $zero, 33332
|
|
ret i64 33332
|
|
}
|
|
|
|
define i64 @foo7() nounwind readnone {
|
|
entry:
|
|
; CHECK: foo7
|
|
; CHECK: daddiu ${{[0-9]+}}, $zero, -32204
|
|
ret i64 -32204
|
|
}
|
|
|
|
define i64 @foo9() nounwind readnone {
|
|
entry:
|
|
; CHECK: foo9
|
|
; CHECK: lui $[[R0:[0-9]+]], 4660
|
|
; CHECK: ori $[[R1:[0-9]+]], $[[R0]], 22136
|
|
; CHECK: dsll $[[R2:[0-9]+]], $[[R1]], 16
|
|
; CHECK: ori $[[R3:[0-9]+]], $[[R2]], 36882
|
|
; CHECK: dsll $[[R4:[0-9]+]], $[[R3]], 16
|
|
; CHECK: ori ${{[0-9]+}}, $[[R4]], 13398
|
|
ret i64 1311768467284833366
|
|
}
|