Quentin Colombet | fbae5fc | 2017-02-13 17:38:59 +0000 | [diff] [blame] | 1 | ; RUN: llc -fast-isel -o - %s -fast-isel-report-on-fallback 2>&1 | FileCheck %s |
| 2 | ; Make sure FastISel report a warming when we asked it to do so. |
| 3 | ; Note: This test needs to use whatever is not supported by FastISel. |
| 4 | ; Thus, this test may fail because inline asm gets supported in FastISel. |
| 5 | ; To fix this, use something else that's not supported (e.g., weird types). |
| 6 | target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" |
| 7 | target triple = "x86_64-apple-macosx" |
| 8 | |
| 9 | ; CHECK: warning: Instruction selection used fallback path for foo |
| 10 | define void @foo(){ |
| 11 | entry: |
| 12 | call void asm sideeffect "nop", "~{dirflag},~{fpsr},~{flags}"() |
| 13 | ret void |
| 14 | } |