mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
99a2e98edd
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129594 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
687 B
LLVM
28 lines
687 B
LLVM
; RUN: llc < %s -march=mipsel | FileCheck %s -check-prefix=CHECK-EL
|
|
; RUN: llc < %s -march=mips | FileCheck %s -check-prefix=CHECK-EB
|
|
@a = external global i32
|
|
|
|
define double @f(i32 %a1, double %d) nounwind {
|
|
entry:
|
|
; CHECK-EL: mtc1 $6, $f12
|
|
; CHECK-EL: mtc1 $7, $f13
|
|
; CHECK-EB: mtc1 $7, $f12
|
|
; CHECK-EB: mtc1 $6, $f13
|
|
store i32 %a1, i32* @a, align 4
|
|
%add = fadd double %d, 2.000000e+00
|
|
ret double %add
|
|
}
|
|
|
|
define void @f3(double %d, i32 %a1) nounwind {
|
|
entry:
|
|
; CHECK-EL: mfc1 ${{[0-9]+}}, $f12
|
|
; CHECK-EL: mfc1 $7, $f13
|
|
; CHECK-EB: mfc1 ${{[0-9]+}}, $f13
|
|
; CHECK-EB: mfc1 $7, $f12
|
|
tail call void @f2(i32 %a1, double %d) nounwind
|
|
ret void
|
|
}
|
|
|
|
declare void @f2(i32, double)
|
|
|