mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-10 22:43:46 +00:00
![Mehdi Amini](/assets/img/avatar_default.png)
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
11 lines
343 B
LLVM
11 lines
343 B
LLVM
; RUN: not --crash llc < %s -fast-isel -fast-isel-abort=2 -mtriple=x86_64-apple-darwin10
|
|
; REQUIRES: asserts
|
|
|
|
%struct.s0 = type { x86_fp80, x86_fp80 }
|
|
|
|
; FastISel cannot handle this case yet. Make sure that we abort.
|
|
define i8* @args_fail(%struct.s0* byval nocapture readonly align 16 %y) {
|
|
%1 = bitcast %struct.s0* %y to i8*
|
|
ret i8* %1
|
|
}
|