mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Add pass that expands pseudo instructions into target instructions after register allocation. Define pseudos that get expanded into mtc1 or mfc1 instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129594 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
27
test/CodeGen/Mips/buildpairextractelementf64.ll
Normal file
27
test/CodeGen/Mips/buildpairextractelementf64.ll
Normal file
@@ -0,0 +1,27 @@
|
||||
; 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)
|
||||
|
Reference in New Issue
Block a user