1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=x86_64-linux-gnu -fast-isel -fast-isel-abort=3 -code-model=medium -large-data-threshold=5 < %s | FileCheck %s
3 ; RUN: llc -mtriple=x86_64-linux-gnu -fast-isel -code-model=medium -large-data-threshold=3 < %s -o /dev/null \
4 ; RUN: -pass-remarks-output=- -pass-remarks-filter=sdagisel | FileCheck %s --check-prefix=FALLBACK --implicit-check-not=missed
8 define void @call_foo() {
9 ; CHECK-LABEL: call_foo:
11 ; CHECK-NEXT: pushq %rax
12 ; CHECK-NEXT: .cfi_def_cfa_offset 16
13 ; CHECK-NEXT: callq foo@PLT
14 ; CHECK-NEXT: popq %rax
15 ; CHECK-NEXT: .cfi_def_cfa_offset 8
21 @g = internal global i32 42
23 ; FALLBACK: FastISel missed terminator
24 ; FALLBACK: in function: g_addr
26 define ptr @g_addr() {
27 ; CHECK-LABEL: g_addr:
29 ; CHECK-NEXT: movabsq $g, %rax
34 ; FALLBACK: FastISel missed
35 ; FALLBACK: in function: load_g
37 define i32 @load_g() {
38 ; CHECK-LABEL: load_g:
40 ; CHECK-NEXT: movl g, %eax