mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
6398a7f5fd
This reverts: r215595 "[FastISel][X86] Add large code model support for materializing floating-point constants." r215594 "[FastISel][X86] Use XOR to materialize the "0" value." r215593 "[FastISel][X86] Emit more efficient instructions for integer constant materialization." r215591 "[FastISel][AArch64] Make use of the zero register when possible." r215588 "[FastISel] Let the target decide first if it wants to materialize a constant." r215582 "[FastISel][AArch64] Cleanup constant materialization code. NFCI." git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215673 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
746 B
LLVM
23 lines
746 B
LLVM
; RUN: llc < %s -O0 -fast-isel-abort -verify-machineinstrs -relocation-model=dynamic-no-pic -mtriple=thumbv7-apple-ios | FileCheck %s --check-prefix=THUMB
|
|
|
|
; Target-specific selector can't properly handle the double because it isn't
|
|
; being passed via a register, so the materialized arguments become dead code.
|
|
|
|
define i32 @main(i32 %argc, i8** %argv) nounwind {
|
|
entry:
|
|
; THUMB: main
|
|
call void @printArgsNoRet(i32 1, float 0x4000CCCCC0000000, i8 signext 99, double 4.100000e+00)
|
|
; THUMB: blx _printArgsNoRet
|
|
; THUMB-NOT: ldr
|
|
; THUMB-NOT: vldr
|
|
; THUMB-NOT: vmov
|
|
; THUMB-NOT: ldr
|
|
; THUMB-NOT: sxtb
|
|
; THUMB: movs r0, #0
|
|
; THUMB: movt r0, #0
|
|
; THUMB: pop
|
|
ret i32 0
|
|
}
|
|
|
|
declare void @printArgsNoRet(i32 %a1, float %a2, i8 signext %a3, double %a4)
|