mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
26d628d6ce
Summary: Currently fast-isel-abort will only abort for regular instructions, and just warn for function calls, terminators, function arguments. There is already fast-isel-abort-args but nothing for calls and terminators. This change turns the fast-isel-abort options into an integer option, so that multiple levels of strictness can be defined. This will help no being surprised when the "abort" option indeed does not abort, and enables the possibility to write test that verifies that no intrinsics are forgotten by fast-isel. Reviewers: resistor, echristo Subscribers: jfb, llvm-commits Differential Revision: http://reviews.llvm.org/D7941 From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230775 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
727 B
LLVM
22 lines
727 B
LLVM
; RUN: llc < %s -O0 -fast-isel-abort=1 -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: pop
|
|
ret i32 0
|
|
}
|
|
|
|
declare void @printArgsNoRet(i32 %a1, float %a2, i8 signext %a3, double %a4)
|