aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/PowerPC/nofpclass.ll
blob: b08e810cd1cca73443161f653a9f501fcf7a22bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s
; RUN: llc -mtriple=powerpc64-ibm-aix-xcoff < %s | FileCheck %s

; TODO: Update this test after adding the proper expansion of nofpclass for
; ppc_fp128 to test with more masks and to demonstrate preserving nofpclass
; after legalization.

define ppc_fp128 @f(ppc_fp128 nofpclass(nan) %s) {
; CHECK-LABEL: f:
; CHECK:       # %bb.0: # %entry
; CHECK-NEXT:    blr
entry:
  ret ppc_fp128 %s
}