aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/X86/tailcall-nofpclass.ll
blob: fd085bb1244fb7e23c3967350850fe6578601106 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s

; Ensures that taillcall optimization can still be
; performed when nofpclass is used.

define noundef nofpclass(nan inf) float @_Z3foof(float noundef nofpclass(nan inf) %0) {
; CHECK-LABEL: _Z3foof:
; CHECK:       # %bb.0:
; CHECK-NEXT:    jmp expf@PLT # TAILCALL
  %2 = tail call float @llvm.exp.f32(float %0)
  ret float %2
}